Commit Graph

982 Commits

Author SHA1 Message Date
Bruce Momjian 4213e44a0b Fix for select null, "fail" from pg_am from Patrick van Kleef 1997-09-12 22:07:59 +00:00
Vadim B. Mikheev 4379ce8380 Quick hack to get CHECK working for incoming betta. 1997-09-12 09:01:46 +00:00
Vadim B. Mikheev 4587547f13 Added: SPI_copytuple() & SPI_modifytuple() 1997-09-12 08:37:52 +00:00
Vadim B. Mikheev a40a546e47 RelationBuildRuleLock(): char* --> Datum for ruleaction and
rule_evqual_string.
1997-09-12 06:57:04 +00:00
Vadim B. Mikheev fd3ad7d765 Allow to call utility funcs without SPI_connect. 1997-09-12 05:11:14 +00:00
Bruce Momjian 1ea01720d5 heapattr functions now return a Datum, not char *. 1997-09-12 04:09:08 +00:00
Vadim B. Mikheev 6e04b4b20f Use strcasecmp in SPI_fnumber(TupleDesc tupdesc, char *fname). 1997-09-12 02:42:40 +00:00
Vadim B. Mikheev a74613f478 Cleanups. 1997-09-11 07:24:37 +00:00
Bruce Momjian 8ec7eef93d Cleanup for array fix patch. 1997-09-10 23:57:49 +00:00
Bruce Momjian efd3b39029 Fix for arrays. 1997-09-10 23:30:45 +00:00
Bruce Momjian 59f6a57e59 Used modified version of indent that understands over 100 typedefs. 1997-09-08 21:56:23 +00:00
Bruce Momjian 075cede748 Add typdefs to pgindent run. 1997-09-08 20:59:27 +00:00
Bruce Momjian 23db70bf73 Lex/yacc source cleanup like indent. 1997-09-08 03:20:18 +00:00
Bruce Momjian 319dbfa736 Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
Bruce Momjian 1ccd423235 Massive commit to run PGINDENT on all *.c and *.h files. 1997-09-07 05:04:48 +00:00
Bruce Momjian b72e62374d More cleanups for indent. 1997-09-06 18:27:11 +00:00
Vadim B. Mikheev bf1d9aeb97 Cleanups. 1997-09-06 11:23:05 +00:00
Bruce Momjian 268b8be814 Cleanup needed for indent. 1997-09-06 00:22:44 +00:00
Bruce Momjian ec05063be0 Cleanups needed for indent. 1997-09-05 20:20:56 +00:00
Bruce Momjian 240a018176 Cleanups needed for indent. 1997-09-05 19:59:11 +00:00
Bruce Momjian ae50c8d84b Cleanups needed for indent. 1997-09-05 19:32:44 +00:00
Bruce Momjian a1635450b3 Cleanups needed for indent. Remove }; 1997-09-05 18:13:45 +00:00
Vadim B. Mikheev c753a6a1e2 Restore CurScanPosition() for flex.
Fix it for lex.
1997-09-05 09:05:48 +00:00
Bruce Momjian 868d708188 Add // comments. 1997-09-05 00:09:47 +00:00
Thomas G. Lockhart 7c243f83e8 Add comparision routines and catalog entries to support indices on
datetime and timespan.
1997-09-04 18:43:59 +00:00
Vadim B. Mikheev bad4bc40b9 CREATE/DROP TRIGGER syntax 1997-09-04 13:24:26 +00:00
Vadim B. Mikheev 0badb77e73 Fixed _copyRangeTblEntry 1997-09-04 13:24:01 +00:00
Vadim B. Mikheev 78d74e32fb execMain.c: little changes in trigger interface...
spi.c: functions to prepare/run and preserve plans for
       duration of transaction/session. Some data utilities.
1997-09-04 13:22:39 +00:00
Vadim B. Mikheev dc13d5d307 Before row insertion triggers call. 1997-09-04 13:19:01 +00:00
Vadim B. Mikheev 8d6e5f07ff heap_destroy:RelationRemoveTriggers() 1997-09-04 13:17:59 +00:00
Thomas G. Lockhart ec70b3c07c Remove comment line in rules section. Keith reports trouble on Solaris
and O'Reilly "lex & yacc" book claims ATT-lex has trouble with comments.
1997-09-02 02:32:35 +00:00
Vadim B. Mikheev b9188c3065 trigger_dynamic()->handle_load() func for loading SPI-triggers 1997-09-01 08:06:17 +00:00
Vadim B. Mikheev c67208b3bb Calls of RelationBuildTriggers() & FreeTriggerDesc() 1997-09-01 08:04:38 +00:00
Vadim B. Mikheev 283e18ab0e BEFORE/AFTER ROW INSERT/DELETE/UPDATE triggers startup. 1997-09-01 08:01:46 +00:00
Vadim B. Mikheev 8c798538b8 BEFORE/AFTER ROW INSERT triggers startup from CopyFrom()
RelationBuildTriggers() & FreeTriggerDesc() in trigger.c
1997-09-01 07:59:06 +00:00
Thomas G. Lockhart 98462b73f8 Shift time zone to GMT to correctly evaluate "current" time. 1997-09-01 06:13:21 +00:00
Thomas G. Lockhart 570620c569 Add SQL92 string handling features (SUBSTRING, TRIM, EXTRACT).
Add parsing for UNION and outer JOINs.
Implement SQL92 "WITH TIME ZONE".
Allow some reserved words as identifiers and column labels.
Clean up indentation and "orphan spaces and tabs".
1997-09-01 06:00:35 +00:00
Thomas G. Lockhart 05cdb99bfb Add detection and warnings for UNION and HAVING clauses.
Generate non-fatal warning only and proceed by ignoring clauses.
1997-09-01 05:56:34 +00:00
Thomas G. Lockhart 05eb632864 Add more reserved words, mostly for SQL92 compliance.
Include reserved words for string handling, outer joins, and unions.
1997-09-01 05:53:31 +00:00
Thomas G. Lockhart 559a28747a Use exclusive states for parsing quoted strings.
Implement extended comments ("/* ... */") using exclusive states.
Modify definitions of operators to remove some restrictions on characters
 and character order.
1997-09-01 05:51:52 +00:00
Vadim B. Mikheev 502f6f3889 CREATE/DROP TRIGGER 1997-08-31 11:41:55 +00:00
Vadim B. Mikheev d65584d297 Get rid of #include "../backend/parser/parse.h 1997-08-31 11:41:20 +00:00
Vadim B. Mikheev 4e9a3f4ef0 Workplace for CREATE/DROP TRIGGER 1997-08-31 11:40:13 +00:00
Vadim B. Mikheev f2cc46dd54 Indexing of pg_trigger 1997-08-31 09:56:18 +00:00
Vadim B. Mikheev 0b6dc93b32 Add spi.o 1997-08-30 10:28:47 +00:00
Vadim B. Mikheev 448332a769 TupleUpdatedByCurXactAndCmd () changed due to
Fix very old bug which made tuples changed/inserted by a commnd
visible to command itself (so we had multiple update of updated tuples,
etc).
1997-08-29 09:12:20 +00:00
Vadim B. Mikheev d8933d5cff New results destination for SPI manager. 1997-08-29 09:06:27 +00:00
Vadim B. Mikheev 0d0254d1fb SPI manager. 1997-08-29 09:05:57 +00:00
Vadim B. Mikheev 3152996ffb Fix very old bug which made tuples changed/inserted by a commnd
visible to command itself (so we had multiple update of updated tuples,
etc).
1997-08-29 09:05:25 +00:00
Vadim B. Mikheev 8fd0898814 Fix time_cmp 1997-08-28 05:06:29 +00:00
Vadim B. Mikheev ed118276e3 Clean CommandInfo after posting to client. 1997-08-28 05:05:43 +00:00
Vadim B. Mikheev becd2f9b82 Fix for "default = '...'" in CREATE TYPE 1997-08-28 05:02:01 +00:00
Vadim B. Mikheev 3751b49545 Number of tuples inserted/affected by INSERT/UPDATE/DELETE... 1997-08-27 09:05:24 +00:00
Vadim B. Mikheev 40ac5a692b heap_delete returns int now (for non-functional deletes). 1997-08-27 09:03:47 +00:00
Bruce Momjian ed7a17dca0 Remove unneeded stat calls. 1997-08-27 03:48:50 +00:00
Bruce Momjian 75c6c2b608 Inlined heap_getattr(). 1997-08-26 23:31:58 +00:00
Bruce Momjian 20afa04d03 Fix for pointer arithmetic. 1997-08-26 19:24:36 +00:00
Bruce Momjian 5927d47b4f Change void * to Dllist*. 1997-08-26 14:05:47 +00:00
Bruce Momjian f8fda03d12 pg_password utility. Cleanup for psql passwords. New datetime contrib stuff for new version. Fix for strutils needing config.h. 1997-08-25 19:41:52 +00:00
Bruce Momjian 8d0e658d06 Small cleanup. 1997-08-25 04:15:40 +00:00
Bruce Momjian c4cb617504 Major patch to speed up backend startup after profiling analysis. 1997-08-24 23:08:01 +00:00
Bruce Momjian 50881e336b Remove compile warning. 1997-08-22 16:48:14 +00:00
Vadim B. Mikheev c0784f6d96 Restore CONSTRAINT keyword (was lost ... by unknown way) 1997-08-22 14:33:21 +00:00
Vadim B. Mikheev d40885cc40 + ExecConstraints() 1997-08-22 14:28:20 +00:00
Vadim B. Mikheev faebf2f8a2 Turn constraints off for sequences & views
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet");
Call ExecConstraints in CopyFrom
1997-08-22 14:22:14 +00:00
Vadim B. Mikheev 530876fea5 Remove DEFAULT/CHECK infos from catalog on DROP TABLE
Store CHECK infos on CREATE TABLE
1997-08-22 14:10:26 +00:00
Bruce Momjian 021778eed3 We store Cash/money as int of size 4, so make it an int rather than a long. 1997-08-22 07:13:01 +00:00
Bruce Momjian 7515bb484e Fix for psql pager when no tty, cleanup for vacuum attdisbursion type. 1997-08-22 04:13:18 +00:00
Vadim B. Mikheev ac0029aa0b Fetch information about DEFAULT/CHECK while openning a relation. 1997-08-22 03:35:44 +00:00
Vadim B. Mikheev 9b6d8878fd There is no NULL constraint in CREATE TABLE - only NOT NULL one. 1997-08-22 03:17:55 +00:00
Vadim B. Mikheev ed2c54b240 DEFAULT handling
Use  for 'selct .. into ..' copy of TupleDesc (without constraints)
#ifdef NOT_USED for resetVarAttrLenForCreateTable (just free tupdesc copy)
1997-08-22 03:12:19 +00:00
Vadim B. Mikheev b5b3e03e34 DefineRelation: DEFAULT/CHECK handling 1997-08-22 03:03:56 +00:00
Vadim B. Mikheev 9e9584cc99 Store attr DEFAULT info in heap_create 1997-08-22 02:58:51 +00:00
Vadim B. Mikheev 55f7d4ea7d CreateTupleDescCopy don't copy constraints now!
+ CreateTupleDescCopyConstr to copy them too.
+ FreeTupleDesc
1997-08-22 02:55:39 +00:00
Bruce Momjian 3dd23aadf0 Allow functions and operators on internally-identical types to succeed. 1997-08-22 00:02:19 +00:00
Bruce Momjian 0ab2921290 Change time function names to be more consistent, and check for zero divides, from Michael Reifenberg. 1997-08-21 23:57:00 +00:00
Bruce Momjian 23cce4ad4f Name change cleanup. 1997-08-21 14:33:05 +00:00
Bruce Momjian 671c4ea6f5 Remove unused spin function when no spinlocks. 1997-08-21 13:43:46 +00:00
Vadim B. Mikheev cc332d612b AttrConstr --> TupleConstr 1997-08-21 04:10:25 +00:00
Bruce Momjian e482462960 Rename pg_attribute.attnvals to attdisbursion. 1997-08-21 03:02:13 +00:00
Bruce Momjian f1edf02cc1 Change pg_attribute.attnvals to float4, change #ifdef 0 to #if 0, fix aix call to strNcpy, fix pg_super_user_id in pg_dumpall, change pg_database.dtadba from oid to int4. 1997-08-21 02:28:55 +00:00
Vadim B. Mikheev 197ced5923 Read info for DEFAULT from pg_attrdef. 1997-08-21 01:36:09 +00:00
Vadim B. Mikheev e3accffe66 Syntax for [CONSTRAINT name] CHECK ... 1997-08-21 01:34:44 +00:00
Vadim B. Mikheev e4247023f1 Get rid of attproc, atttyparg, attcanindex, attdefrel, attbound
from pg_attribute. atthasdef added.
1997-08-21 01:32:19 +00:00
Bruce Momjian 11ac1bf268 More NOT_USEDs 1997-08-20 14:54:35 +00:00
Vadim B. Mikheev 4a132abf6c HTNegate/HTCommute/HTNegateCommute are not used. 1997-08-20 02:01:42 +00:00
Vadim B. Mikheev 0c001f080b CHECK/DEFAULT syntax (some tricks to get current scan position). 1997-08-20 01:50:06 +00:00
Vadim B. Mikheev 4527172b80 CHECK/DEFAULT syntax 1997-08-20 01:12:38 +00:00
Marc G. Fournier bb951c6cb4 Changes for Digital Unix 1997-08-20 00:50:11 +00:00
Bruce Momjian 4e9e00cb68 Fix for sunos4 difftime() call. 1997-08-19 21:47:07 +00:00
Bruce Momjian 1d8bbfd2e7 Make functions static where possible, enclose unused functions in #ifdef NOT_USED. 1997-08-19 21:40:56 +00:00
Vadim B. Mikheev b992e200b8 NOT NULL implementation (submitted by Robson Paniago de Miranda). 1997-08-19 04:46:15 +00:00
Bruce Momjian b99c63cfc0 Now that names are null terminated, no need to do all that NAMEDATALEN stuff. 1997-08-18 20:53:48 +00:00
Bruce Momjian 022903f22e Reduce open() calls. Replace fopen() calls with calls to fd.c functions. 1997-08-18 02:15:04 +00:00
Marc G. Fournier eaae21fb4d Fixes for alphalinux port by abrams@philos.umass.edu 1997-08-17 02:40:00 +00:00
Bruce Momjian fd86ae151a Cleanup global variables, remove stable memory stuff. 1997-08-14 16:11:41 +00:00
Vadim B. Mikheev e99e4ba833 sprintf "...%d...", ... (int)getpid(), ...
^^^^^
1997-08-14 05:04:38 +00:00
Vadim B. Mikheev ccc77423db _hash_checkpage: cleanup for CASSERT 1997-08-14 05:01:32 +00:00
Bruce Momjian 0b2eb99f01 These changes allow the module to compile quietly when assert checking is
not being done.
1997-08-12 23:03:50 +00:00
Bruce Momjian ea5b5357cd Remove more (void) and fix -Wall warnings. 1997-08-12 22:55:25 +00:00