summaryrefslogtreecommitdiff
path: root/src/backend/utils/error
Commit message (Collapse)AuthorAgeFilesLines
* Fix relative path references so that make knowns which dependencies referPeter Eisentraut2000-08-311-4/+4
| | | | | to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
* First phase of memory management rewrite (see backend/utils/mmgr/READMETom Lane2000-06-281-23/+38
| | | | | | | | | | | | | for details). It doesn't really do that much yet, since there are no short-term memory contexts in the executor, but the infrastructure is in place and long-term contexts are handled reasonably. A few long- standing bugs have been fixed, such as 'VACUUM; anything' in a single query string crashing. Also, out-of-memory is now considered a recoverable ERROR, not FATAL. Eliminate a large amount of crufty, now-dead code in and around memory management. Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and backend startup.
* Removed ELOG_TIMESTAMPS #define in favor of two run-timePeter Eisentraut2000-06-041-47/+66
| | | | configuration options `Log_timestamp' and `Log_pid'.
* The heralded `Grand Unified Configuration scheme' (GUC)Peter Eisentraut2000-05-312-42/+184
| | | | | | | | | | | | | That means you can now set your options in either or all of $PGDATA/configuration, some postmaster option (--enable-fsync=off), or set a SET command. The list of options is in backend/utils/misc/guc.c, documentation will be written post haste. pg_options is gone, so is that pq_geqo config file. Also removed were backend -K, -Q, and -T options (no longer applicable, although -d0 does the same as -Q). Added to configure an --enable-syslog option. changed all callers from TPRINTF to elog(DEBUG)
* Remove unused include files. Do not touch /port or includes used by defines.Bruce Momjian2000-05-301-3/+1
|
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-291-3/+1
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* elog(NOTICE) during COPY incorrectly reset lineno to 0, causing anyTom Lane2000-04-151-3/+4
| | | | | | subsequent elogs() in the same COPY operation to display the wrong line number. Fix is to clear lineno only when elog level is such that we will not return to caller.
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-121-43/+61
|
* contrib-array.patchBruce Momjian2000-02-131-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is an old patch which I have already submitted and never seen in the sources. It corrects the datatype oids used in some iterator functions. This bug has been reported to me by many other people. contrib-datetime.patch some code contributed by Reiner Dassing <dassing@wettzell.ifag.de> contrib-makefiles.patch fixes all my contrib makefiles which don't work with some compilers, as reported to me by another user. contrib-miscutil.patch an old patch for one of my old contribs. contrib-string.patch a small change to the c-like text output functions. Now the '{' is escaped only at the beginning of the string to distinguish it from arrays, and the '}' is no more escaped. elog-lineno.patch adds the current lineno of CopyFrom to elog messages. This is very useful when you load a 1 million tuples table from an external file and there is a bad value somehere. Currently you get an error message but you can't know where is the bad data. The patch uses a variable which was declared static in copy.c. The variable is now exported and initialized to 0. It is always cleared at the end of the copy or at the first elog message or when the copy is canceled. I know this is very ugly but I can't find any better way of knowing where the copy fails and I have this problem quite often. plperl-makefile.patch fixes a typo in a makefile, but the error must be elsewhere because it is a file generated automatically. Please have a look. tprintf-timestamp.patch restores the original 2-digit year format, assuming that the two century digits don't carry much information and that '000202' is easier to read than 20000202. Being only a log file it shouldn't break anything. Please apply the patches before the next scheduled code freeze. I also noticed that some of the contribs don't compile correcly. Should we ask people to fix their code or rename their makefiles so that they are ignored by the top makefile? -- Massimo Dal Zotto
* Add:Bruce Momjian2000-01-266-12/+18
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* elog() was set up to call abort() if it saw an ERROR or FATAL exitTom Lane1999-12-301-8/+2
| | | | | | | | | | during InitProcessingMode and the CurrentTransactionState was neither TRANS_DEFAULT nor TRANS_DISABLED. Unfortunately, after someone's recent change to start the transaction manager earlier in startup than it used to be started, that caused an abort() and consequent database system reset on quite harmless errors (such as rejecting an invalid user name!). As far as I can see, the test on CurrentTransactionState was completely useless anyway, so I've removed it.
* New LDOUT makefile variable for QNX os.Bruce Momjian1999-12-131-2/+2
|
* Make LD -r as macros that can be changed for QNX.Bruce Momjian1999-12-091-2/+2
|
* Clean up some problems in error recovery --- elog() was pretty brokenTom Lane1999-11-221-10/+28
| | | | | | for the case of errors in backend startup, and proc_exit's method for coping with errors during proc_exit was *completely* busted. Fixed per discussions on pghackers around 11/6/99.
* Modify elog() logic so that it won't try to longjmp(Warn_restart) beforeTom Lane1999-11-161-5/+9
| | | | | | | | | | Warn_restart has been set by the backend main loop. This means that elog(ERROR) or elog(FATAL) in the postmaster or during backend startup now have well-defined behavior: proc_exit() rather than coredump. In the case of elog() inside the postmaster, I think that proc_exit() is probably not enough --- don't we want our child backends to be forced to quit too? But I don't understand Vadim's recent changes in this area, so I'll leave it to him to look over and tweak if needed.
* Standardize on MAXPGPATH as the size of a file pathname buffer,Tom Lane1999-10-251-3/+3
| | | | | | | eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time.
* XLOG (also known as WAL -:)) Bootstrap/Startup/Shutdown.Vadim B. Mikheev1999-10-061-20/+27
| | | | | First step in cleaning up backend initialization code. Fix for FATAL: now FATAL is ERROR + exit.
* Eliminate elog()'s hardwired limit on length of an error message.Tom Lane1999-09-111-78/+214
| | | | | | | | | This change seems necessary in conjunction with long queries, and it cleans up some bogosity in connection with long EXPLAIN texts anyway. Note that current libpq will accept any length error message (at least until it runs out of memory); prior versions have a limit of 8K, but will cleanly discard excess error text, so there shouldn't be any big compatibility problems with old clients.
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-174-12/+4
|
* Final cleanupBruce Momjian1999-07-162-5/+5
|
* Update #include cleanupsBruce Momjian1999-07-163-6/+6
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-2/+1
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-3/+1
|
* Rename to vararg_format().Bruce Momjian1999-06-191-3/+3
|
* Change form() to varargform() to prevent portability problems.Bruce Momjian1999-06-191-3/+3
|
* pgindent run over code.Bruce Momjian1999-05-254-19/+26
|
* Change error messages to oids come out as %u and not %d. Change has noBruce Momjian1999-05-101-3/+2
| | | | real affect now.
* Still had a few MULTIBYTE problems when client encoding wasTom Lane1999-04-251-3/+3
| | | | different from database's ...
* Revise backend libpq interfaces so that messages to the frontendTom Lane1999-04-251-5/+14
| | | | | | can be generated in a buffer and then sent to the frontend in a single libpq call. This solves problems with NOTICE and ERROR messages generated in the middle of a data message or COPY OUT operation.
* Change elog(ERROR) to get back to main loop via a plain sigsetjmp,Tom Lane1999-04-201-15/+4
| | | | | | instead of doing a kill(self, SIGQUIT) and expecting the signal handler to do it. Also, clean up inconsistent definitions of the sigjmp buffer in the several files that already referenced it.
* Fix kill() call in elog() so that it gets its own pid by calling getpid().Tatsuo Ishii1999-04-161-2/+6
| | | | | | | MyProcPid global variable is set to 0 when postgres starts as a command (not as a backend daemon). This leads issuing SIGQUIT to the process group, not the process itself. As a result, parent sh gets core dumped in the Wisconsin benchmark test.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-136-21/+21
|
* Add explicit buffering in backend libpq, to compensate forTom Lane1999-01-231-2/+9
| | | | buffering lost by not going through stdio anymore for client I/O.
* Replace direct inclusions of c.h with inclusion of postgres.h,Tom Lane1999-01-171-2/+2
| | | | to ensure that config.h is included as well.
* From: Magnus Hagander <mha@sollentuna.net>Marc G. Fournier1999-01-111-8/+3
| | | | | | | | | | | | Here is a first patch to cleanup the backend side of libpq. This patch removes all external dependencies on the "Pfin" and "Pfout" that are declared in pqcomm.h. These variables are also changed to "static" to make sure. Almost all the change is in the handler of the "copy" command - most other areas of the backend already used the correct functions. This change will make the way for cleanup of the internal stuff there - now that all the functions accessing the file descriptors are confined to a single directory.
* Some security, since we now have vsnprintf, I remade an old patchBruce Momjian1999-01-012-8/+4
| | | | | | | with some extra ugly sprintfs fixed. More work in this area is needed still. Göran Thyni
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-013-35/+36
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-014-12/+10
|
* Two spaces after a colon.Bruce Momjian1998-08-311-6/+6
|
* From: Massimo Dal Zotto <dz@cs.unitn.it>Marc G. Fournier1998-08-252-24/+65
| | | | | | | | | | | | > tprintf.patch > > tprintf.patch > > adds functions and macros which implement a conditional trace package > with the ability to change flags and numeric options of running > backends at runtime. > Options/flags can be specified in the command line and/or read from > the file pg_options in the data directory.
* Rename signal to SIGHUP.Bruce Momjian1998-07-071-2/+2
|
* Fix for hang after postmaster restart. Add new proc_exit andBruce Momjian1998-06-272-6/+6
| | | | shmem_exit to replace exitpg().
* Add SLEEP_ON_ABORTBruce Momjian1998-06-181-2/+5
|
* port name cleanupBruce Momjian1998-06-181-1/+2
|
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-3/+1
|
* Remove fork()/exec() and only do fork(). Small cleanups.Bruce Momjian1998-05-291-5/+1
|
* Allow cancel from client of backend query. Change some int variablesBruce Momjian1998-05-191-2/+2
| | | | to bool's.
* Hi,Bruce Momjian1998-04-061-5/+3
| | | | | | | | | | | | | | | | | | | | | | Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-263-11/+14
|
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-112-5/+5
|