mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Change elog(WARN) to elog(ERROR) and elog(ABORT).
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.57 1997/12/16 15:57:00 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.58 1998/01/05 03:33:46 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* this is the "main" module of the postgres backend and
|
||||
@ -125,7 +125,7 @@ jmp_buf Warn_restart;
|
||||
sigjmp_buf Warn_restart;
|
||||
|
||||
#endif /* defined(nextstep) */
|
||||
int InWarn;
|
||||
int InErrorOrAbort;
|
||||
|
||||
extern int NBuffers;
|
||||
|
||||
@ -728,7 +728,7 @@ pg_exec_query_dest(char *query_string,/* string to execute */
|
||||
* signal handler routines used in PostgresMain()
|
||||
*
|
||||
* handle_warn() is used to catch kill(getpid(),1) which
|
||||
* occurs when elog(WARN) is called.
|
||||
* occurs when elog(ABORT) is called.
|
||||
*
|
||||
* quickdie() occurs when signalled by the postmaster.
|
||||
* Some backend has bought the farm,
|
||||
@ -774,7 +774,7 @@ die(SIGNAL_ARGS)
|
||||
static void
|
||||
FloatExceptionHandler(SIGNAL_ARGS)
|
||||
{
|
||||
elog(WARN, "floating point exception!"
|
||||
elog(ABORT, "floating point exception!"
|
||||
" The last floating point operation either exceeded legal ranges"
|
||||
" or was a divide by zero");
|
||||
}
|
||||
@ -1343,7 +1343,7 @@ PostgresMain(int argc, char *argv[])
|
||||
* so that the slaves signal the master to abort the transaction
|
||||
* rather than calling AbortCurrentTransaction() themselves.
|
||||
*
|
||||
* Note: elog(WARN) causes a kill(getpid(),1) to occur sending
|
||||
* Note: elog(ABORT) causes a kill(getpid(),1) to occur sending
|
||||
* us back here.
|
||||
* ----------------
|
||||
*/
|
||||
@ -1352,7 +1352,7 @@ PostgresMain(int argc, char *argv[])
|
||||
|
||||
if (sigsetjmp(Warn_restart, 1) != 0)
|
||||
{
|
||||
InWarn = 1;
|
||||
InErrorOrAbort = 1;
|
||||
|
||||
time(&tim);
|
||||
|
||||
@ -1363,7 +1363,7 @@ PostgresMain(int argc, char *argv[])
|
||||
|
||||
AbortCurrentTransaction();
|
||||
}
|
||||
InWarn = 0;
|
||||
InErrorOrAbort = 0;
|
||||
|
||||
/* ----------------
|
||||
* POSTGRES main processing loop begins here
|
||||
@ -1372,7 +1372,7 @@ PostgresMain(int argc, char *argv[])
|
||||
if (IsUnderPostmaster == false)
|
||||
{
|
||||
puts("\nPOSTGRES backend interactive interface");
|
||||
puts("$Revision: 1.57 $ $Date: 1997/12/16 15:57:00 $");
|
||||
puts("$Revision: 1.58 $ $Date: 1998/01/05 03:33:46 $");
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
@ -1565,7 +1565,7 @@ PostgresMain(int argc, char *argv[])
|
||||
break;
|
||||
|
||||
default:
|
||||
elog(WARN, "unknown frontend message was recieved");
|
||||
elog(ABORT, "unknown frontend message was recieved");
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
|
Reference in New Issue
Block a user