summaryrefslogtreecommitdiff
path: root/src/backend/tcop/utility.c
Commit message (Collapse)AuthorAgeFilesLines
* Final cleanup.Bruce Momjian1999-07-161-16/+13
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-9/+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-2/+3
|
* Improve error message from failed LOAD command (includeTom Lane1999-05-221-13/+3
| | | | kernel's error description when file is not accessible).
* Add new postgres -O option to allow system table structure changes.Bruce Momjian1999-03-171-4/+4
|
* Here is a patch.Bruce Momjian1999-03-161-9/+9
| | | | | | | | I have changed to call pg_exec_query_dest() instead of pg_exec_query(). Thanks. Hiroshi Inoue
* Remove reference to recipe.h.Bruce Momjian1999-02-251-2/+1
|
* Fix problem with selectivity error in added columns with ALTER TABLE.Bruce Momjian1999-02-241-1/+3
| | | | Move files to deadcode.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* primary key support cleanups from D'Arcy...Marc G. Fournier1999-01-261-2/+2
|
* The following patch finishes primary key support. Previously, whenBruce Momjian1999-01-211-1/+2
| | | | | | | | | | | | | | | | | | | | a field was labelled as a primary key, the system automatically created a unique index on the field. This patch extends it so that the index has the indisprimary field set. You can pull a list of primary keys with the followiing select. SELECT pg_class.relname, pg_attribute.attname FROM pg_class, pg_attribute, pg_index WHERE pg_class.oid = pg_attribute.attrelid AND pg_class.oid = pg_index.indrelid AND pg_index.indkey[0] = pg_attribute.attnum AND pg_index.indisunique = 't'; There is nothing in this patch that modifies the template database to set the indisprimary attribute for system tables. Should they be changed or should we only be concerned with user tables? D'Arcy
* Apply Win32 patch from Horak Daniel.Bruce Momjian1999-01-171-1/+5
|
* SET TRANSACTION ISOLATION LEVEL ...Vadim B. Mikheev1998-12-181-1/+8
| | | | | LOCK TABLE IN ... MODE ...implemented
* Bracket filename in LOAD error message with single quotesThomas G. Lockhart1998-09-251-2/+2
| | | | to clarify actual path used.
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-45/+45
|
* From: Massimo Dal Zotto <dz@cs.unitn.it>Marc G. Fournier1998-08-251-1/+12
| | | | | | | > these patches define the UNLISTEN sql command. The code already > existed but it was unknown to the parser. Now it can be used > like the listen command. > You must make clean and delete gram.c and parser.h before make.
* From: Massimo Dal Zotto <dz@cs.unitn.it>Marc G. Fournier1998-08-251-44/+43
| | | | | | | | | | > ps-status.patch > > macros for ps status, used by postgres.c and utility.c. > Unfortunately ps status is system dependent and the current > code doesn't work on linux. The use of macros confines system > dependency to into one file (ps-status.h). Users of other > operating systems should check this code and submit new macros.
* o note that now pg_database has a new attribuite "encoding" evenBruce Momjian1998-08-241-5/+1
| | | | | | | | | | | | | | | | | | | | | | if MULTIBYTE is not enabled. So be sure to run initdb. o these patches are made against the latest source tree (after Bruce's massive patch, I think) BTW, I noticed that after running regression, the oid field of pg_type seems disappeared. regression=> select oid from pg_type; ERROR: attribute 'oid' not found this happens after the constraints test. This occures with/without my patches. strange... o pg_database_mb.h, pg_class_mb.h, pg_attribute_mb.h are no longer used, and shoud be removed. o GetDatabaseInfo() in utils/misc/database.c removed (actually in #ifdef 0). seems nobody uses. t-ishii@sra.co.jp
* Make large objects their own relkind type. Fix dups in pg_class_mbBruce Momjian1998-08-061-2/+2
| | | | files. Fix sequence creation hack for relkind type.
* 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/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Change error message and remove non-functional update message, fromBruce Momjian1998-06-161-2/+2
| | | | Vadim.
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-7/+1
|
* Fix macros that were not properly surrounded by parens or braces.Bruce Momjian1998-06-151-2/+7
|
* Show backend status on ps command line. Remove unused args fromBruce Momjian1998-06-041-42/+44
| | | | pg_exec_query().
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-26/+27
|
* getpid/pid cleanupBruce Momjian1998-01-251-2/+2
|
* Move variable.c to commands/ and aclchk.c to catalog/.Bruce Momjian1998-01-051-2/+2
|
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-051-16/+16
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-16/+16
|
* Coerce a function argument to avoid compiler warning.Thomas G. Lockhart1998-01-011-4/+6
|
* From: todd brandys <brandys@eng3.hep.uiuc.edu>Marc G. Fournier1997-12-041-1/+27
| | | | | An extension to the code to allow for a pg_password authentication database that is *seperate* from the system password file
* Move dbcommands.c to commands/. It should not be in the parser directory.Bruce Momjian1997-11-241-2/+2
|
* More archive cleanup.Bruce Momjian1997-11-211-2/+1
|
* Remove archive stuff.Bruce Momjian1997-11-211-15/+1
|
* Support alternate database locations.Thomas G. Lockhart1997-11-071-2/+2
|
* Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan).Vadim B. Mikheev1997-10-281-4/+22
|
* Rename "TYPE" parser keyword token from P_TYPE to TYPE_P to conformThomas G. Lockhart1997-10-251-3/+3
| | | | to changes in parser.
* MOVE implementation.Vadim B. Mikheev1997-09-291-3/+4
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-2/+3
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-524/+528
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-594/+618
|
* CREATE/DROP TRIGGERVadim B. Mikheev1997-08-311-1/+19
|
* Now that names are null terminated, no need to do all that NAMEDATALEN stuff.Bruce Momjian1997-08-181-7/+7
|
* Reduce open() calls. Replace fopen() calls with calls to fd.c functions.Bruce Momjian1997-08-181-6/+4
|
* Various compile errors concerning overflow due to shifts, unsigned, and bad ↵Bruce Momjian1997-07-241-3/+2
| | | | prototypes, from Solaris, from Diab Jerius
* From: Darren King <aixssd!darrenk@abs.net>Marc G. Fournier1997-05-221-4/+11
| | | | | | | | Subject: [PATCHES] DROP AGGREGATE patch/fix. Here's a patch that fixes the DROP AGGREGATE command to delete the desired aggregate for a specific type.
* 1. SHOW/RESET var fixed.Vadim B. Mikheev1997-04-231-4/+6
| | | | 2. vacuum() call changed (ANALYZE).
* To: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-231-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: Re: [PATCHES] SET DateStyle patches On Tue, 22 Apr 1997, Thomas Lockhart wrote: > Some more patches! These (try to) finish implementing SET variable TO value > for "DateStyle" (changed the name from simply "date" to be more descriptive). > This is based on code from Martin and Bruce (?), which was easy to modify. > The syntax is > > SET DateStyle TO 'iso' > SET DateStyle TO 'postgres' > SET DateStyle TO 'sql' > SET DateStyle TO 'european' > SET DateStyle TO 'noneuropean' > SET DateStyle TO 'us' (same as "noneuropean") > SET DateStyle TO 'default' (current same as "postgres,us") > > ("european" is just compared for the first 4 characters, and "noneuropean" > is compared for the first 7 to allow less typing). > > Multiple arguments are allowed, so SET datestyle TO 'sql,euro' is valid. > > My mods also try to implement "SHOW variable" and "RESET variable", but > that part just core dumps at the moment. I would guess that my errors > are obvious to someone who knows what they are doing with the parser stuff, > so if someone (Bruce and/or Martin??) could have it do the right thing > we will have a more complete set of what we need. > > Also, I would like to have a floating point precision global variable to > implement "SET precision TO 10" and perhaps "SET precision TO 10,2" for > float8 and float4, but I don't know how to do that for integer types rather > than strings. If someone is fixing the SHOW and RESET code, perhaps they can > add some hooks for me to do the floats while they are at it. > > I've left some remnants of variable structures in the source code which > I did not use in the interests of getting something working for v6.1. > We'll have time to clean things up for the next release...