summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.c
Commit message (Collapse)AuthorAgeFilesLines
* New NameStr macro to convert Name to Str. No need for var.data anymore.Bruce Momjian1999-11-071-7/+7
| | | | | | Fewer calls to nameout. Better use of RelationGetRelationName.
* Standardize on MAXPGPATH as the size of a file pathname buffer,Tom Lane1999-10-251-3/+5
| | | | | | | 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-27/+58
| | | | | First step in cleaning up backend initialization code. Fix for FATAL: now FATAL is ERROR + exit.
* Massimo's SET FSYNC and SHOW PG_OPTIONS changes, without SET QUERY_LIMIT.Bruce Momjian1999-09-271-2/+1
|
* Mega-commit to make heap_open/heap_openr/heap_close take anTom Lane1999-09-181-11/+18
| | | | | | | | | | | | | | | | | additional argument specifying the kind of lock to acquire/release (or 'NoLock' to do no lock processing). Ensure that all relations are locked with some appropriate lock level before being examined --- this ensures that relevant shared-inval messages have been processed and should prevent problems caused by concurrent VACUUM. Fix several bugs having to do with mismatched increment/decrement of relation ref count and mismatched heap_open/close (which amounts to the same thing). A bogus ref count on a relation doesn't matter much *unless* a SI Inval message happens to arrive at the wrong time, which is probably why we got away with this sloppiness for so long. Repair missing grab of AccessExclusiveLock in DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi. Recommend 'make clean all' after pulling this update; I modified the Relation struct layout slightly. Will post further discussion to pghackers list shortly.
* Re-add getopt.h check, remove NT-specific tests for it.Bruce Momjian1999-07-191-5/+4
|
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-7/+1
|
* Final cleanup.Bruce Momjian1999-07-161-2/+4
|
* Update #include cleanupsBruce Momjian1999-07-161-2/+2
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-43/+1
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-2/+1
|
* pgindent run over code.Bruce Momjian1999-05-251-3/+5
|
* Change error messages to oids come out as %u and not %d. Change has noBruce Momjian1999-05-101-5/+5
| | | | real affect now.
* Change elog(ERROR) to get back to main loop via a plain sigsetjmp,Tom Lane1999-04-201-19/+1
| | | | | | 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.
* Clean up att_align calculations so that XXXALIGN macrosTom Lane1999-03-251-3/+23
| | | | need not be bogus.
* Add new postgres -O option to allow system table structure changes.Bruce Momjian1999-03-171-3/+3
|
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* Cleanup of source files where 'return' or 'var =' is alone on a line.Bruce Momjian1999-02-031-3/+2
|
* Apply Win32 patch from Horak Daniel.Bruce Momjian1999-01-171-1/+4
|
* New HeapTuple structure/interface.Vadim B. Mikheev1998-11-271-4/+4
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-3/+4
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-22/+22
|
* Fix bootstrap so it properly defines alignment of attributes.Bruce Momjian1998-08-241-8/+10
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-24/+26
| | | | | | | | | | | | | no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
* Use Snapshot in heap access methods.Vadim B. Mikheev1998-07-271-10/+5
|
* From: t-ishii@sra.co.jpMarc G. Fournier1998-07-261-2/+2
| | | | | | | | | As Bruce mentioned, this is due to the conflict among changes we made. Included patches should fix the problem(I changed all MB to MULTIBYTE). Please let me know if you have further problem. P.S. I did not include pathces to configure and gram.c to save the file size(configure.in and gram.y modified).
* I really hope that I haven't missed anything in this one...Marc G. Fournier1998-07-241-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: t-ishii@sra.co.jp Attached are patches to enhance the multi-byte support. (patches are against 7/18 snapshot) * determine encoding at initdb/createdb rather than compile time Now initdb/createdb has an option to specify the encoding. Also, I modified the syntax of CREATE DATABASE to accept encoding option. See README.mb for more details. For this purpose I have added new column "encoding" to pg_database. Also pg_attribute and pg_class are changed to catch up the modification to pg_database. Actually I haved added pg_database_mb.h, pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is enabled. The reason having separate files is I couldn't find a way to use ifdef or whatever in those files. I have to admit it looks ugly. No way. * support for PGCLIENTENCODING when issuing COPY command commands/copy.c modified. * support for SQL92 syntax "SET NAMES" See gram.y. * support for LATIN2-5 * add UNICODE regression test case * new test suite for MB New directory test/mb added. * clean up source files Basic idea is to have MB's own subdirectory for easier maintenance. These are include/mb and backend/utils/mb.
* Fix for hang after postmaster restart. Add new proc_exit andBruce Momjian1998-06-271-7/+7
| | | | shmem_exit to replace exitpg().
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-33/+1
|
* Remove fork()/exec() and only do fork(). Small cleanups.Bruce Momjian1998-05-291-2/+2
|
* Allow cancel from client of backend query. Change some int variablesBruce Momjian1998-05-191-7/+7
| | | | to bool's.
* Re-apply Darren's char2-16 removal code.Bruce Momjian1998-04-261-64/+46
|
* Back out char2-char16 removal. Add later.Bruce Momjian1998-04-071-46/+64
|
* The following uuencoded, gzip'd file will ...Bruce Momjian1998-03-301-64/+46
| | | | | | | | | | | 1. Remove the char2, char4, char8 and char16 types from postgresql 2. Change references of char16 to name in the regression tests. 3. Rename the char16.sql regression test to name.sql. 4. Modify the regression test scripts and outputs to match up. Might require new regression.{SYSTEM} files... Darren King
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-9/+11
|
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-111-2/+2
|
* atttypmod now -1.Bruce Momjian1998-02-071-1/+2
|
* Set attcacheoff value to -1 for all tables.Bruce Momjian1998-02-061-15/+3
|
* getpid/pid cleanupBruce Momjian1998-01-251-2/+2
|
* Goodbye ABORT. Hello ERROR for all errors.Bruce Momjian1998-01-071-5/+5
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-5/+5
|
* Bracket #define sigsetjmp() to avoid redefinition. Linux starts out withThomas G. Lockhart1998-01-011-4/+10
| | | | sigsetjmp as a macro, so gives compiler warning without bracketing.
* Remove tqual.h includes not needed.Bruce Momjian1997-11-241-2/+1
|
* Remove all time travel stuff. Small parser cleanup.Bruce Momjian1997-11-201-5/+5
|
* Remove 16 char limit on system table/index names. Rename system indexes.Bruce Momjian1997-11-171-3/+3
|
* Inline memset() as MemSet().Bruce Momjian1997-09-181-2/+2
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-7/+7
|
* Add typdefs to pgindent run.Bruce Momjian1997-09-081-2/+2
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-114/+113
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-791/+892
|