summaryrefslogtreecommitdiff
path: root/src/backend/commands/copy.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial MVCC code.Vadim B. Mikheev1998-12-151-1/+22
| | | | New code for locking buffer' context.
* New HeapTuple structure/interface.Vadim B. Mikheev1998-11-271-18/+9
|
* Get rid of some minor compiler warnings.Tom Lane1998-10-261-2/+2
| | | | | (HP's cc doesn't like if you forward-declare a routine static, and then don't make it static in the actual definition...)
* Allow 8-key indexes.Bruce Momjian1998-09-231-2/+2
|
* AIX align fix.Bruce Momjian1998-09-081-2/+2
|
* Alignment cleanup so no more massive switch statements for alignment,Bruce Momjian1998-09-071-33/+4
| | | | just two macros.
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-33/+35
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-28/+28
|
* Prevent file descriptor leak from failed COPY.Bruce Momjian1998-08-291-6/+16
|
* Fix scanner name length trimming.Bruce Momjian1998-08-291-1/+3
|
* This is the first (of hopefully few) AIX port patches. This patchBruce Momjian1998-08-291-4/+4
| | | | | | | was tested with Linux/GCC. I still have some issues with with the snprintf() function. David Hartwig
* o note that now pg_database has a new attribuite "encoding" evenBruce Momjian1998-08-241-3/+58
| | | | | | | | | | | | | | | | | | | | | | 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
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-15/+8
| | | | | | | | | | | | | 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-65/+10
|
* From: t-ishii@sra.co.jpMarc G. Fournier1998-07-261-10/+10
| | | | | | | | | 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-7/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 COPY problem and atttypmod.Bruce Momjian1998-07-151-3/+3
|
* Change atttypmod from int16 to int32, for Thomas.Bruce Momjian1998-07-121-5/+5
|
* From: t-ishii@sra.co.jpMarc G. Fournier1998-06-191-15/+9
| | | | | | | | | | | | | | | | | | | As mentioned around line 1153 in backend/commands/copy.c, the method of array checking is not perfect. test=> create table t1 (i text); test=> insert into t1 values('{\\.}'); INSERT 2645600 1 test=> select * from t1; i ----- {\\.} (2 rows) test=> copy t1 to '/tmp/aaa'; test=> copy t1 from '/tmp/aaa'; ERROR: CopyReadAttribute - end of record marker corrupted Copy cannot read data produced by itself!
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-23/+1
|
* There's a patch attached to fix gcc 2.8.x warnings, except for theBruce Momjian1998-03-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | yyerror ones from bison. It also includes a few 'enhancements' to the C programming style (which are, of course, personal). The other patch removes the compilation of backend/lib/qsort.c, as qsort() is a standard function in stdlib.h and can be used any where else (and it is). It was only used in backend/optimizer/geqo/geqo_pool.c, backend/optimizer/path/predmig.c, and backend/storage/page/bufpage.c > > Some or all of these changes might not be appropriate for v6.3, since we > > are in beta testing and since they do not affect the current functionality. > > For those cases, how about submitting patches based on the final v6.3 > > release? There's more to come. Please review these patches. I ran the regression tests and they only failed where this was expected (random, geo, etc). Cheers, Jeroen
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-7/+8
|
* From: Jan Wieck <jwieck@debis.com>Marc G. Fournier1998-02-251-2/+2
| | | | | | | | | | seems that my last post didn't make it through. That's good since the diff itself didn't covered the renaming of pg_user.h to pg_shadow.h and it's new content. Here it's again. The complete regression test passwd with only some float diffs. createuser and destroyuser work. pg_shadow cannot be read by ordinary user.
* Atttypmod cleanup.Bruce Momjian1998-02-131-3/+2
|
* Pass around typmod as int16.Bruce Momjian1998-02-101-5/+19
|
* Inline fastgetattr and others so data access does not use functionBruce Momjian1998-01-311-4/+4
| | | | calls.
* New pg_attribute.atttypmod for type-specific information likeBruce Momjian1998-01-161-2/+2
| | | | | | | | | | | varchar length. Cleans up code so attlen is always length. Removed varchar() hack added earlier. Will fix bug in selecting varchar() fields, and varchar() can be variable length.
* Thank god for searchable mail archives.PostgreSQL Daemon1998-01-151-12/+10
| | | | | | | | | Patch by: wieck@sapserv.debis.de (Jan Wieck) One of the design rules of PostgreSQL is extensibility. And to follow this rule means (at least for me) that there should not only be a builtin PL. Instead I would prefer a defined interface for PL implemetations.
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-051-36/+18
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-18/+18
|
* Remove all time travel stuff. Small parser cleanup.Bruce Momjian1997-11-201-4/+4
|
* heapattr functions now return a Datum, not char *.Bruce Momjian1997-09-121-3/+2
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-19/+19
|
* 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-209/+209
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-867/+1017
|
* Before row insertion triggers call.Vadim B. Mikheev1997-09-041-3/+3
|
* BEFORE/AFTER ROW INSERT triggers startup from CopyFrom()Vadim B. Mikheev1997-09-011-27/+58
| | | | RelationBuildTriggers() & FreeTriggerDesc() in trigger.c
* Turn constraints off for sequences & viewsVadim B. Mikheev1997-08-221-10/+13
| | | | | elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet"); Call ExecConstraints in CopyFrom
* NOT NULL implementation (submitted by Robson Paniago de Miranda).Vadim B. Mikheev1997-08-191-1/+17
|
* Reduce open() calls. Replace fopen() calls with calls to fd.c functions.Bruce Momjian1997-08-181-4/+6
|
* Datum *idatum;Vadim B. Mikheev1997-06-121-4/+5
| | | | ^
* Can't COPY TO sequence relation.Vadim B. Mikheev1997-04-021-1/+3
| | | | Can't inherits from ...
* From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier1997-03-121-4/+6
| | | | | | | | Subject: [HACKERS] better access control error messages This patch replaces the 'no such class or insufficient privilege' with distinct error messages that tell you whether the table really doesn't exist or whether access was denied.
* Massimo fix for non-existant file copy error.Bruce Momjian1997-01-101-3/+3
|
* index_insert has now HeapRelation as last param (for unique indexVadim B. Mikheev1997-01-101-2/+2
| | | | implementation).
* COPY_PATCH...Marc G. Fournier1996-12-191-1/+76
| | | | Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFromVadim B. Mikheev1996-12-141-2/+6
| | | | | is eliminated (now I can copy 2000000-table from file without memmory exhausting).
* Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>Marc G. Fournier1996-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: * Unique index capability works using the syntax 'create unique index'. * Duplicate OID's in the system tables are removed. I put little scripts called 'duplicate_oids' and 'find_oid' in include/catalog that help to find and remove duplicate OID's. I also moved 'unused_oids' from backend/catalog to include/catalog, since it has to be in the same directory as the include files in order to work. * The backend tries converting the name of a function or aggregate to all lowercase if the original name given doesn't work (mostly for compatibility with ODBC). * You can 'SELECT NULL' to your heart's content. * I put my _bt_updateitem fix in instead, which uses _bt_insertonpg so that even if the new key is so big that the page has to be split, everything still works. * All literal references to system catalog OID's have been replaced with references to define'd constants from the catalog header files. * I added a couple of node copy functions. I think this was a preliminary attempt to get rules to work.
* All external function definitions now have prototypes that are checked.Bruce Momjian1996-11-101-1/+2
|