mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Restructure error handling as recently discussed. It is now really
possible to trap an error inside a function rather than letting it propagate out to PostgresMain. You still have to use AbortCurrentTransaction to clean up, but at least the error handling itself will cooperate.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.68 2004/07/28 22:05:47 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.69 2004/07/31 00:45:41 tgl Exp $
|
||||
*
|
||||
* OLD COMMENTS
|
||||
* This file was created so that other c files could get the two
|
||||
@@ -19,17 +19,12 @@
|
||||
#ifndef TCOPPROT_H
|
||||
#define TCOPPROT_H
|
||||
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "executor/execdesc.h"
|
||||
#include "nodes/params.h"
|
||||
#include "tcop/dest.h"
|
||||
#include "utils/guc.h"
|
||||
|
||||
|
||||
extern DLLIMPORT sigjmp_buf Warn_restart;
|
||||
extern bool Warn_restart_ready;
|
||||
extern bool InError;
|
||||
extern CommandDest whereToSendOutput;
|
||||
extern DLLIMPORT const char *debug_query_string;
|
||||
extern int max_stack_depth;
|
||||
|
Reference in New Issue
Block a user