summaryrefslogtreecommitdiff
path: root/contrib/spi
Commit message (Collapse)AuthorAgeFilesLines
* More functions updated to new fmgr style --- money, name, tid datatypes.Tom Lane2000-08-031-1/+2
| | | | | We're reaching the mopup stage here (good thing too, this is getting tedious).
* Another round of those unportable config/build changes :-/Peter Eisentraut2000-07-092-33/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to build with OpenSSL out of the box. Fix thusly exposed bit rot. Although it compiles now, getting this to do something useful is left as an exercise. * Fix Kerberos options to defer checking for required libraries until all the other libraries are checked for. * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc. * Install work around for Autoconf's install-sh relative path anomaly. Get rid of old INSTL_*_OPTS variables, now that we don't need them anymore. * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX. * Look for only one of readline.h or readline/readline.h, not both. * Make check for PS_STRINGS cacheable. Don't test for the header files separately. * Disable fcntl(F_SETLK) test on Linux. * Substitute the standard GCC warnings set into CFLAGS in configure, don't add it on in Makefile.global. * Sweep through contrib tree to teach makefiles standard semantics. ... and in completely unrelated news: * Make postmaster.opts arbitrary options-aware. I still think we need to save the environment as well.
* Update textin() and textout() to new fmgr style. This is just phaseTom Lane2000-07-052-9/+9
| | | | | one of updating the whole text datatype, but there are so dang many calls of these two routines that it seems worth a separate commit.
* Makefile cleanup from Karel.Bruce Momjian2000-07-041-2/+2
|
* Very small changes in the contrib's pg_dumplo in the attache.Bruce Momjian2000-07-032-68/+0
| | | | | | | | | | | | | | | | | And: Note, Bruce I found in the contrib tree any files that we forget remove during contrib cleaning. Please remove these files: contrib/lo/test.sql contrib/pg_dumplo/Makefile.out contrib/pgbench/pgbench_jis.doc contrib/spi/new_example.example contrib/spi/README.MAX Thanks. Karel
* Remove old README files.Bruce Momjian2000-06-191-0/+0
|
* Add missing /contrib filesBruce Momjian2000-06-192-0/+172
|
* Update to /contrib from Karel.Bruce Momjian2000-06-198-177/+5
|
* Cleanup README Makefile installs.Bruce Momjian2000-06-161-4/+4
|
* Add missing /contrib files to CVS.Bruce Momjian2000-06-155-0/+44
|
* /contrib patch from Karel.Bruce Momjian2000-06-157-169/+51
|
* Update sequence-related functions to new fmgr style. Remove downcasing,Tom Lane2000-06-111-4/+6
| | | | | | | | quote-stripping, and acl-checking tasks for these functions from the parser, and do them at function execution time instead. This fixes the failure of pg_dump to produce correct output for nextval(Foo) used in a rule, and also eliminates the restriction that the argument of these functions must be a parse-time constant.
* Another round of updates for new fmgr, mostly in the datetime code.Tom Lane2000-06-091-1/+2
|
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-291-1/+1
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* Second round of fmgr changes: triggers are now invoked in new style,Tom Lane2000-05-2910-145/+123
| | | | CurrentTriggerData is history.
* pgindent run over code.Bruce Momjian1999-05-253-95/+114
|
* Updates for 6.5.Bruce Momjian1999-05-171-0/+109
|
* Undo collateral damage from recent patch: Makefile hadTom Lane1999-05-161-3/+7
| | | | lost most of target list and thus 'make clean' didn't clean up very well.
* I am sorry, I misinterpreted the still failing trigger regression test.Bruce Momjian1999-05-121-2/+0
| | | | | | | | | | | | | | | | | The offending code has been removed, the action is now always dependent :-) I suggest the following patch, to finally make trigger regression happy again: <<refint1.patch>> After that you can remove the following from TODO: Remove ERROR: check_primary_key: even number of arguments should be specified Trigger regression test fails Andreas
* I send you a attach of my modified refint.c thatBruce Momjian1999-05-109-156/+424
| | | | | | | | | | | | works with a new policy in cascade mode . Please Read README.MAX . I do not know if you are the author of refint.c , but if not please tell me who is . Thank you ( excuse me for my bad english) . Massimo Lambertini massimo.lambertini@everex.it
* Hi All,Bruce Momjian1999-03-151-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I've changed the check_primary_key() function code to allow for either the "automatic insert key rule" or "dependent insert key rule". Previously it restricted the addtion of a child entry if the corresponding parent entry was not there. Now if the option is "automatic" it will add an entry in the parent too ( it will be successful if there are no no-null fields in the parent apart from the primary key). The way to use it now is: :/* * check_primary_key () -- check that key in tuple being inserted/updated * references existing tuple in "primary" table. * Though it's called without args You have to specify referenced * table/keys while creating trigger: key field names in triggered table, * referenced table name, referenced key field names,type of action [automatic|dependent]: * EXECUTE PROCEDURE * check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2', '[automatic|dependent]'). */ I am attaching the new ../contrib/spi/refint.c file which will do this. I will be glad to help in case of any problems. - Anand.
* OK, here is a diff for the README file in /usr/src/pgsql/contrib/spi/.Bruce Momjian1998-12-141-0/+12
| | | | | | | For the 6.5 tree. Have a great night. Terry
* New moddatetime contrib from Terry Mackintosh.Bruce Momjian1998-12-124-1/+140
|
* > > There is a bug in check_foreign_key of refint.c which is bundled withBruce Momjian1998-10-061-0/+2
| | | | | | | | | | | | | > > the standard distribution. It occurs when a trigger calling this > > function recursively fires another trigger which calls the same > > function. The calling check_foreign_key loses its plan informantion and > > when it tries to use it the backend closes its channel. You can check it > > with the sql script I am attaching below. > > The solution to this is to do a find_plan again before executing it at > > line 483 of refint.c. > > Therefore two more lines should be added before line 483: Anand Surelia
* From: Jun Kuwamura <juk@rccm.co.jp>Marc G. Fournier1998-04-221-1/+1
| | | | | | This patch fix the Makefiles in contrib/{pginterface, spi, miscutil, int8, ip_and_mac, sequence, soundex, string, userlock, array, datetime} to install their modules in one directory(lib/modules/).
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-264-219/+224
|
* From: plh@opim.uconn.eduMarc G. Fournier1998-02-141-1/+1
| | | | Missing = in an update
* From: "Michael J. Maravillo" <mmj@philonline.com>Marc G. Fournier1998-01-171-1/+1
| | | | | | This patch makes it possible to do a "real" make distclean (back to its fresh state) on the distribution after compilation, regression testing, etc.
* Change some labels in bootparse to make ctags happy. Clean up ↵Bruce Momjian1998-01-064-58/+58
| | | | outfunc/readfunc code and add missing fields for Query structure and new Union fields. Fix optimizer bug shown in new \do command. Change WARN to ERROR in contrib and regression stuff.
* Trigger function for inserting user names.Vadim B. Mikheev1997-10-175-2/+129
| | | | | Install compiled functions into $(LIBDIR)/contrib. (Thanks to Brook Milligan <brook@trillium.NMSU.Edu>)
* General function for SERIAL/IDENTITY/AUTOINCREMENT feature.Vadim B. Mikheev1997-10-028-34/+241
| | | | Handle INSERT event in timetravel().
* General trigger functions for time-travelVadim B. Mikheev1997-09-245-6/+525
|
* char* --> DatumVadim B. Mikheev1997-09-121-5/+5
|
* README for refint.c and example of using.Vadim B. Mikheev1997-09-123-1/+121
|
* Changed for regression tests.Vadim B. Mikheev1997-09-111-3/+7
|
* General trigger functions for referential integrity.Vadim B. Mikheev1997-09-113-0/+577