summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
AgeCommit message (Collapse)Author
1997-09-18Inline memset() as MemSet().Bruce Momjian
1997-09-18No more SortTuplesInTree...Vadim B. Mikheev
1997-09-18Allow set max number of tuples in leftist tree for sortsVadim B. Mikheev
(-S memory,tuples)
1997-09-15-S need in optarg...Vadim B. Mikheev
1997-09-08Used modified version of indent that understands over 100 typedefs.Bruce Momjian
1997-09-08Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian
indenting. Also static variable indenting.
1997-09-07Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian
1997-08-19Make functions static where possible, enclose unused functions in #ifdef ↵Bruce Momjian
NOT_USED.
1997-08-14Cleanup global variables, remove stable memory stuff.Bruce Momjian
1997-08-12Fix pgproc names over 15 chars in output. Add strNcpy() function. remove ↵Bruce Momjian
some (void) casts that are unnecessary.
1997-08-06psort cleanups.Bruce Momjian
1997-08-06Another fix.Bruce Momjian
1997-08-06Allow internal sorts to be stored in memory rather than in files.Bruce Momjian
1997-07-29Remove some unnecessary include statements (comment out with #ifdef FALSE).Thomas G. Lockhart
1997-07-28Added SCO support, from Daniel Harris.Bruce Momjian
1997-07-24Various compile errors concerning overflow due to shifts, unsigned, and bad ↵Bruce Momjian
prototypes, from Solaris, from Diab Jerius
1997-04-24Somewhat backwards #ifdef's for HAVE_GETRUSAGEMarc G. Fournier
1997-04-23Change HAVE_RUSAGE to HAVE_GETRUSAGE, which is the more appropriateMarc G. Fournier
1997-02-14Remove WIN32 defines. They never worked.Bruce Momjian
1997-02-12Patch from Massimo Dal Zotto <dz@cs.unitn.it>Marc G. Fournier
The following patches add to the backend a new debugging flag -K which prints a debug trace of all locking operations on user relations (those with oid greater than 20000). The code is compiled only if LOCK_MGR_DEBUG is defined, so the patch should be harmless if not explicitly enabled. I'm using the code to trace deadlock conditions caused by application queries using the command "$POSTMASTER -D $PGDATA -o '-d 1 -K 1'. The patches are for version 6.0 dated 970126.
1997-02-03Change references to NEED_RUSAGE to HAVE_RUSAGEMarc G. Fournier
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>
1997-01-27Apply usage patches for European Dates patch from KeithMarc G. Fournier
1997-01-26Change next to nextstep where missed.Bruce Momjian
1997-01-26Bring in a patch from Keith Parks to move the use of European datesMarc G. Fournier
from a #define to a run-time option '-e' Man page was updated to reflect new option
1997-01-14Eliminate dupliclate definition of external variables reldesc and DataDir.Bryan Henderson
Some compilers recognize this error.
1996-12-26pq/signal() portability patch. Also psql copy prompt fix.Bruce Momjian
1996-12-07Reduce printing from debug level 2 ande layout change.Bruce Momjian
1996-11-27Allow all empty queries to return EMPTY.Bruce Momjian
1996-11-18Remove linux define of __USE_POSIX, which doesn't appear to do anything.Bryan Henderson
1996-11-16Remove old GetPGData reference that causes warning.Bryan Henderson
1996-11-14Remove most compile-time options, add a few runtime options to make up for it.Bryan Henderson
In particular, no more compiled-in default for PGDATA or LIBDIR. Commands that need them need either invocation options or environment variables. PGPORT default is hardcoded as 5432, but overrideable with options or environment variables.
1996-11-11Warning removal cleanupBruce Momjian
1996-11-10All external function definitions now have prototypes that are checked.Bruce Momjian
1996-11-10Quiet compiler warnings.Bryan Henderson
1996-11-08Compile and warning cleanupBruce Momjian
1996-11-04Remove OPENLINK defineBruce Momjian
1996-11-03Produce a clean compile of backend...Marc G. Fournier
1996-10-31more removal of PORTNAME_*Marc G. Fournier
1996-10-30Fix memset() call, variables being passed in wrong order.Marc G. Fournier
Pointed out by: wieck@sapserv.debis.de
1996-10-13Added consistent include file handling for MAXHOSTNAMELEN.Bruce Momjian
If I have introduced any syntax errors with this, I will patch them in the morning, and Marc will have a good laugh.
1996-10-04The remainder of D'Arcy's changes, most notibly the usage of SIGNAL_ARGSMarc G. Fournier
1996-09-16There is a bug in the function executor. The backend crashes while trying toMarc G. Fournier
execute an sql function containing an utility command (create, notify, ...). The bug is part in the planner, which returns a number of plans different than the number of commands if there are utility commands in the query, and in part in the function executor which assumes that all commands are normal query commands and causes a SIGSEGV trying to execute commands without plan. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-10Fixes:Marc G. Fournier
The problem is that the function arguments are not considered as possible key candidates for index scan and so only a sequential scan is possible inside the body of a function. I have therefore made some patches to the optimizer so that indices are now used also by functions. I have also moved the plan debug message from pg_eval to pg_plan so that it is printed also for plans genereated for function execution. I had also to add an index rescan to the executor because it ignored the parameters set in the execution state, they were flagged as runtime variables in ExecInitIndexScan but then never used by the executor so that the scan were always done with any key=1. Very odd. This means that an index rescan is now done twice for each function execution which uses an index, the first time when the index scan is initialized and the second when the actual function arguments are finally available for the execution. I don't know what is the cost of an double index scan but I suppose it is anyway less than the cost of a full sequential scan, at leat for large tables. This is my patch, you must also add -DINDEXSCAN_PATCH in Makefile.global to enable the changes. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-08-19More run-time checking errors:Marc G. Fournier
-Kurt
1996-08-06Fixes:Marc G. Fournier
I've enclosed two patches. The first affects Solaris compilability. The bug stems from netdb.h (where MAXHOSTNAMELEN is defined on a stock system). If the user has installed the header files from BIND 4.9.x, there will be no definition of MAXHOSTNAMELEN. The patch will, if all else fails, try to include <arpa/nameser.h> and set MAXHOSTNAMELEN to MAXDNAME, which is 256 (just like MAXHOSTNAMELEN on a stock system). The second patch adds aliases for "ISNULL" to "IS NULL" and likewise for "NOTNULL" to "IS NOT NULL". I have not removed the postgres specific ISNULL and NOTNULL. I noticed this on the TODO list, and figured it would be easy to remove. The full semantics are: [ expression IS NULL ] [ expression IS NOT NULL ] --Jason Submitted by: Jason Wright <jason@oozoo.vnet.net>
1996-07-22More merges from Dr. George's tree...Marc G. Fournier
- src/backend/tcop/* - cosmetic changes to OPENLINK patches - src/backend/storage/* - more changes, mostly cosmetic - src/backend/ports/* - merge in patches for aix and i386_solaris
1996-07-19Fixes:Marc G. Fournier
This is a patch to prevent an endless loop occuring in the Postgres backend when a 'warning' error condition generates another warning error contition in the handler code. Submitted by: Chris Dunlop, <chris@onthe.net.au>
1996-07-15fsync patch from openlinkMarc G. Fournier
1996-07-09Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier