Commit Graph

2135 Commits

Author SHA1 Message Date
Thomas G. Lockhart
bc85dbf893 Remove backdoor strings from scan.l for DEFAULT and CHECK.
Reconstruct string input for DEFAULT and CHECK.
Add DOUBLE PRECISION, CHARACTER (VARYING) SQL-92 data types.
1997-09-13 03:15:46 +00:00
Thomas G. Lockhart
9ea74630fc Add a few keywords for SQL-92 support. 1997-09-13 03:13:37 +00:00
Thomas G. Lockhart
0fbfba11f6 Use exclusive state to help fix unary minus parsing.
Remove "backdoor" for DEFAULT and CHECK.
1997-09-13 03:12:55 +00:00
Thomas G. Lockhart
c1d3c04d38 Fix up error messages. 1997-09-13 03:11:51 +00:00
Thomas G. Lockhart
2d2562e90d Fix up error messages to remove extra newline. Use "zero" rather than "0.0". 1997-09-13 03:10:11 +00:00
Bruce Momjian
ff4722cf77 Solaris does not have lorder/tsort. 1997-09-13 02:27:06 +00:00
Bruce Momjian
26a1956f8c pg_version Makefile was not being processed. 1997-09-12 23:24:25 +00:00
Bruce Momjian
aa0bad9638 Remove that 5 from MESSAGE SIZE that no one understands. 1997-09-12 22:26:13 +00:00
Bruce Momjian
1d0085e47a Dec alphaserver patch from Malcolm Beattie 1997-09-12 22:22:12 +00:00
Bruce Momjian
fe54c54da3 Allow SELECT NULL as EMPTY_FIELD, Patrick. 1997-09-12 22:14:48 +00:00
Bruce Momjian
4213e44a0b Fix for select null, "fail" from pg_am from Patrick van Kleef 1997-09-12 22:07:59 +00:00
Bruce Momjian
2d7023c8fb No \\connect with usernames AND passwords. 1997-09-12 21:58:03 +00:00
Bruce Momjian
cf5a8723dd Increase default geqo parameter to 8. 1997-09-12 21:25:10 +00:00
Bruce Momjian
7044dd7ec8 Fix heap_getattr bug I just added. 1997-09-12 14:29:04 +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
Bruce Momjian
b6bd3da520 Macro cleanup of heap_getattr. 1997-09-12 05:58:18 +00:00
Vadim B. Mikheev
fd3ad7d765 Allow to call utility funcs without SPI_connect. 1997-09-12 05:11:14 +00:00
Vadim B. Mikheev
7f97e05b09 char* --> Datum 1997-09-12 04:58:59 +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
Bruce Momjian
c853ca05a4 Update pgpatch for GNU. 1997-09-11 21:29:11 +00:00
Bruce Momjian
c8bc4a4e63 Add new pgindent directory and diff file. 1997-09-11 17:22:35 +00:00
Vadim B. Mikheev
ba247bd649 Tests for spi/triggers 1997-09-11 09:14:12 +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
b1f3f446af Cleanup. 1997-09-10 20:19:23 +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
4f523a6f92 Manual page updates. 1997-09-08 17:49:43 +00:00
Bruce Momjian
108baf70e5 Developer reorganization. 1997-09-08 04:19:50 +00:00
Bruce Momjian
125079e6d7 Reorganize developers files. 1997-09-08 04:14:01 +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
a90f12fd9d Modifications for indenting. 1997-09-08 01:53:56 +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
8fecd4febf Cleanup. 1997-09-07 04:20:30 +00:00
Bruce Momjian
31afe7c069 Cleanup. 1997-09-07 04:17:39 +00:00
Bruce Momjian
c51d81376f Cleanup. 1997-09-07 04:03:55 +00:00
Bruce Momjian
b3652d2cca cleanup. 1997-09-07 03:26:12 +00:00
Bruce Momjian
70b990fa58 Cleanup for indent. 1997-09-06 19:51:44 +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
5d68d3e957 New entab version. 1997-09-06 03:14:38 +00:00
Bruce Momjian
b71fba22e3 New entab version. 1997-09-06 02:46:43 +00:00
Bruce Momjian
723f66076e Update entab version. 1997-09-06 01:46:25 +00:00
Bruce Momjian
2718f3097f Fix for entab. 1997-09-06 01:37:01 +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
40e5588115 Cleanups needed for indent. 1997-09-05 19:38:42 +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
Bruce Momjian
fe97d58051 cleanup. 1997-09-05 17:04:22 +00:00
Vadim B. Mikheev
c753a6a1e2 Restore CurScanPosition() for flex.
Fix it for lex.
1997-09-05 09:05:48 +00:00
Bruce Momjian
ce5ea7f381 Cleanup. 1997-09-05 04:29:56 +00:00
Bruce Momjian
dfc2d35943 Better error reporting. 1997-09-05 04:18:36 +00:00
Bruce Momjian
868d708188 Add // comments. 1997-09-05 00:09:47 +00:00
Bruce Momjian
b45311e016 More tab cleanup. 1997-09-04 18:50:28 +00:00
Thomas G. Lockhart
b647a27cf5 Add comparision routines to support indices on datetime and timespan. 1997-09-04 18:44:29 +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
Bruce Momjian
bb77313a0a Tabs in comments fix. 1997-09-04 18:34:59 +00:00
Bruce Momjian
18bb25bdf1 Fix for dashes in comments. 1997-09-04 16:36:32 +00:00
Bruce Momjian
9fcd4c25bc Fix conditional casting. 1997-09-04 16:20:55 +00:00
Bruce Momjian
33b028b5b0 Fix syntax error in psql help. 1997-09-04 15:02:56 +00:00
Vadim B. Mikheev
444369e7b2 struct Trigger changed 1997-09-04 13:26:45 +00:00
Vadim B. Mikheev
9ba606cd24 Prototypes, definitions... 1997-09-04 13:26:19 +00:00
Vadim B. Mikheev
989ab6b1e7 pg_trigger changed 1997-09-04 13:25:14 +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
Bruce Momjian
35378a4efc Fix syntax error. 1997-09-03 16:48: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
6084c915d0 Triggers added to Relation 1997-09-01 08:13:22 +00:00
Vadim B. Mikheev
b69b815e3a + Member for actions in CreateTrigStmt. 1997-09-01 08:11:57 +00:00
Vadim B. Mikheev
2ca45d5729 Function prototypes. 1997-09-01 08:10:12 +00:00
Vadim B. Mikheev
38f0ffd36c #define TriggerRelationName "pg_trigger" 1997-09-01 08:09:09 +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
c2efeafe9c Update information and query results for upcoming v6.2 release. 1997-09-01 06:21:00 +00:00
Thomas G. Lockhart
bebfe968e3 Test new intersection and closest point operators.
Fix up results labels on queries.
Update existing queries which now return good results.
1997-09-01 06:19:43 +00:00
Thomas G. Lockhart
2d0e6b0ff7 Test new intersection and closest point operators.
Fix up results labels on queries.
1997-09-01 06:18:45 +00:00
Thomas G. Lockhart
f2a9e203e8 Test for "current" time by comparing against "now". 1997-09-01 06:16:08 +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
b776831e8b Rearrange scanning code to support extended comments.
Use #define symbols rather than integers for scanning states.
1997-09-01 06:09:53 +00:00
Thomas G. Lockhart
1bf90bc7d3 Add structure for subselects.
Add field to support "WITH TIME ZONE".
1997-09-01 06:04:59 +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
Thomas G. Lockhart
1370a08746 Fix return value data type declarations for box_circle() and poly_circle(). 1997-09-01 05:46:09 +00:00
Vadim B. Mikheev
8dd090f6da CREATE/DROP TRIGGER statement nodes 1997-08-31 11:43:09 +00:00
Vadim B. Mikheev
bcf03a7ed6 CREATE/DROP TRIGGER functions 1997-08-31 11:42:21 +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
2d7b93c0ca Welcome, triggers 1997-08-31 09:55:24 +00:00
Marc G. Fournier
6a061da272 Update patch from Peter <patches@maidast.demon.co.uk> 1997-08-31 08:15:13 +00:00
Vadim B. Mikheev
0b6dc93b32 Add spi.o 1997-08-30 10:28:47 +00:00
Bruce Momjian
65191fabfd indent flag change. 1997-08-29 21:41:33 +00:00
Bruce Momjian
0aea0f2063 Cleanup. 1997-08-29 21:20:09 +00:00
Bruce Momjian
fddc57bfcd Add PGINDENT and support program. 1997-08-29 21:13:00 +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
Bruce Momjian
e06099c607 heap_getattr fix for aix. 1997-08-29 00:44:55 +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
174bc0c1e7 Tests for CHECK/DEFAULT 1997-08-28 04:49:34 +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
Marc G. Fournier
ceac1d5a4e Only need to check for strerror once :) 1997-08-27 05:06:20 +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
6451b04a08 rename sections. 1997-08-26 17:39:32 +00:00
Bruce Momjian
ed626314e6 unix.1 renamed to pgintro.1. 1997-08-26 17:30:09 +00:00
Bruce Momjian
99e9deac73 Manual page renaming. 1997-08-26 17:00:23 +00:00
Bruce Momjian
5927d47b4f Change void * to Dllist*. 1997-08-26 14:05:47 +00:00
Bruce Momjian
0bdd6d1e00 pg_passwd cleanup. 1997-08-25 23:28:04 +00:00
Bruce Momjian
86062218da pg_passwd cleanup. 1997-08-25 23:11:21 +00:00
Bruce Momjian
c6e7baa7e1 pg_passwd cleanup 1997-08-25 20:00:03 +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
281ba3f40d Update .similar version file. 1997-08-22 18:48:25 +00:00
Bruce Momjian
e045278e7e Fix for no NULL in CREATE TABLE. 1997-08-22 17:15:41 +00:00
Bruce Momjian
50881e336b Remove compile warning. 1997-08-22 16:48:14 +00:00
Bruce Momjian
0a50d30bd7 Warning in makefile added from DArcy. 1997-08-22 16:38:33 +00:00
Vadim B. Mikheev
c16d29f990 + ExecConstraints () 1997-08-22 14:39:33 +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
5f7f236ba4 ConstraintDef changed 1997-08-22 04:05:27 +00:00
Vadim B. Mikheev
d67547d82d Set attbyval for attdisbursion to FALSE
Set atttype for relchecks to 21 (int2)
Set relkind for pg_attrdef & pg_relcheck to 'n'
1997-08-22 04:04:19 +00:00
Vadim B. Mikheev
ee5f09f07c + CreateTupleDescCopyConstr
+ FreeTupleDesc
1997-08-22 03:55:39 +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
76501c8aed Make psql use pager only when it has a tty. 1997-08-22 00:17:26 +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
d37e93aafd #definitions for pg_attrdef & pg_relcheck names 1997-08-21 04:33:20 +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
ac3d7b3146 + extern double *box_area(BOX *box); 1997-08-21 01:40:30 +00:00
Vadim B. Mikheev
f2dd89b6fa + struct ConstaintDef - for constraints. 1997-08-21 01:39:25 +00:00
Vadim B. Mikheev
25aa0f8d04 New system relations to store DEFAULT/CHECK expressions. 1997-08-21 01:37: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
63fbdd358f Portability fix for pg_dumpall. 1997-08-20 15:06:48 +00:00
Bruce Momjian
11ac1bf268 More NOT_USEDs 1997-08-20 14:54:35 +00:00
Bruce Momjian
36c9c968c0 Add static finding script. 1997-08-20 02:10:47 +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
Marc G. Fournier
9d90de5de7 Changes so that it actually checks for <readline/history.h>, instead
of assuming it does exist
1997-08-17 00:48:51 +00:00
Marc G. Fournier
5410203949 Make sure that LIBPQDIR points to the right directory 1997-08-17 00:39:02 +00:00
Marc G. Fournier
9093238c7e Fix up paths to $(SRCDIR) 1997-08-17 00:33:28 +00:00
Marc G. Fournier
f63f5680e3 Add appropriate links into the interfaces directory, as well as a Makefile
covering the interfaces directory
1997-08-16 20:56:28 +00:00
Marc G. Fournier
ff246d7b64 Bring in Adrian's JDBC driver as an interface 1997-08-16 20:51:53 +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
Bruce Momjian
0f6a961e29 cleanup of patch 1997-08-12 20:39:16 +00:00
Bruce Momjian
edb58721b8 Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary. 1997-08-12 20:16:25 +00:00
Bruce Momjian
4b851b1cfc Add bsdi gcc2 options. 1997-08-08 03:51:33 +00:00
Bruce Momjian
dc374505fa Fix for psort again. 1997-08-06 17:11:20 +00:00
Bruce Momjian
677efc7679 Another psort fix. 1997-08-06 07:39:20 +00:00
Bruce Momjian
42c0cd33a2 I think I finally got psort working for all cases. 1997-08-06 07:02:49 +00:00
Bruce Momjian
cc24b846dd psort cleanups. 1997-08-06 05:38:46 +00:00
Bruce Momjian
8fd7db8163 Another fix. 1997-08-06 05:08:37 +00:00
Bruce Momjian
ead219384f Fix for palloc(0) in new code 1997-08-06 04:45:39 +00:00
Bruce Momjian
f5f366e188 Allow internal sorts to be stored in memory rather than in files. 1997-08-06 03:42:21 +00:00
Bruce Momjian
3bea7b138b Add developers help file. 1997-08-06 03:37:34 +00:00
Bruce Momjian
1ebc1280e8 Fix for os version handling. 1997-08-06 03:33:45 +00:00
Vadim B. Mikheev
b3d8beaa1a Catch non-functional delete attempts. 1997-08-06 02:08:39 +00:00
Bruce Momjian
6ed1715b1f Cleanup for NAMEDATALEN use. 1997-08-03 02:38:47 +00:00
Bruce Momjian
ea210dc611 Comment out code that makes no sense, and Purify complains about. 1997-08-03 02:28:10 +00:00
Bruce Momjian
8015ba0836 Prevent relname unallocated string length from being copied into database. 1997-08-02 19:09:33 +00:00
Bruce Momjian
105889e1d8 Makei configure less os-version specific, were possible. 1997-08-02 16:32:51 +00:00
Bruce Momjian
4b965f5758 Fix stout/stderr paging. Do not page \h select, but page \h *. 1997-08-01 04:07:55 +00:00
Bruce Momjian
da76711714 FIx solaris template finding. 1997-08-01 03:49:22 +00:00
Bruce Momjian
a67fd49091 Fix psql error output. 1997-08-01 03:33:02 +00:00
Bruce Momjian
f5f18af02b Configure cleanup for /usr/ucb patch. 1997-07-31 01:37:56 +00:00
Bruce Momjian
aff479b4d1 Look in /usr/ucb first for install. 1997-07-30 19:16:23 +00:00
Bruce Momjian
cdc2c06386 configure.in cleanup for tr and strerror2. 1997-07-30 18:27:18 +00:00
Bruce Momjian
775098bd28 Add -o to psql manual page. 1997-07-30 17:21:29 +00:00
Bruce Momjian
1b20f8ac11 Fix c++ copy example code. 1997-07-30 15:53:57 +00:00
Marc G. Fournier
ecefacd07d Due to BIND 8.1.1, my Solaris 2.5.1 machine doesn't define MAXHOSTNAMELEN...
so, add a check that basically says if it isn't defined, set it to 256...
1997-07-30 14:08:11 +00:00
Marc G. Fournier
5089f6ce87 Check for and use <netdb.h> for postmaster.c, instead of checking if
MAXHOSTNAMELEN is defined.  For some reason, my 2.5.1 Solaris box at
work fails on that check...
1997-07-30 14:03:33 +00:00
Vadim B. Mikheev
ac994a69d6 Allow use parameters in target list having aggregates in functions. 1997-07-30 04:42:26 +00:00
Bruce Momjian
6c93fe8f9d configure.in cleanup from sco install. 1997-07-30 01:32:44 +00:00
Bruce Momjian
bcc883fed3 Remove HAVE_USAGE because it is no longer used. 1997-07-30 00:09:42 +00:00
Bruce Momjian
c86e85df92 Update COPY manual page to remove unneeded warnings. 1997-07-29 21:43:40 +00:00
Bruce Momjian
9db76f384d Update configure after sunos4 update. 1997-07-29 21:16:52 +00:00
Bruce Momjian
461f80cf9a Add strerror to pg_version for sunos4. 1997-07-29 16:36:43 +00:00
Thomas G. Lockhart
622af87fd2 Results from initial changes to add new functions and for bug fixes.
Not all cleaned up yet.
1997-07-29 16:24:04 +00:00
Thomas G. Lockhart
3d5dd9bdd9 Start adding tests for new geometry functions.
Not all cleaned up yet.
1997-07-29 16:22:48 +00:00
Thomas G. Lockhart
c5035643af Use better routines from geometry library. 1997-07-29 16:21:12 +00:00
Thomas G. Lockhart
840ea2497d Change call definition for isreltime(). 1997-07-29 16:19:26 +00:00
Thomas G. Lockhart
3c2d74d2af Add new operators and functions for geometric types.
Add text concatenation operator and function.
Add text trim function for SQL92 support.
1997-07-29 16:17:52 +00:00
Thomas G. Lockhart
e89d139dbe Add new routines.
Change definition for isreltime().
Change some names of #define constants to avoid conflicts with the yacc parser.
1997-07-29 16:16:14 +00:00
Thomas G. Lockhart
e1d9cf096c Remove some unnecessary include statements (comment out with #ifdef FALSE). 1997-07-29 16:14:40 +00:00
Thomas G. Lockhart
bf138e2139 Add routines for text trimming on both ends, substring, and string position.
Used to support SQL92 compatibility.
1997-07-29 16:12:07 +00:00
Thomas G. Lockhart
d95c93bf99 Fix bug to allow hh:mm:ss time entry for timespan/reltime types. 1997-07-29 16:09:38 +00:00
Thomas G. Lockhart
215bc83d75 Remove #ifdef'd support for old i/o styles.
Change box terminology from "length" to "width".
 Use length terminology in common with other geometric types (usually perimeter).
Fix bugs in line arithmetic which resulted in bad intersection calculations.
Deprecate temporary unstored slope fields.
Check explicitly for intersections at endpoints to avoid rounding ugliness.
Add center() routines for lseg, path, polygon.
Add distance() routines for circle-polygon, polygon-polygon.
Check explicitly for points and polygons contained within polygons
 using an axis-crossing algorithm. (Old code just checked bounding boxes).
Add routine to convert circle-box.
*whew*
1997-07-29 16:08:18 +00:00
Thomas G. Lockhart
1ba73ed3a0 Update some reltime code to use new common routines.
Use standard decoder for isreltime().
1997-07-29 15:54:49 +00:00
Thomas G. Lockhart
9d8ae79774 Add debugging statements. 1997-07-29 15:51:33 +00:00
Bruce Momjian
8d25436d70 mkLinux patches from Tatsuo Ishii. 1997-07-29 14:09:11 +00:00
Bruce Momjian
7c5afb87c3 Makefile fix from Tatsuo Ishii. 1997-07-28 23:57:20 +00:00
Bruce Momjian
fd6b3c26ef fix small memory free error. 1997-07-28 23:53:54 +00:00
Bruce Momjian
8338f90d4e Add SCO files. 1997-07-28 01:34:24 +00:00
Bruce Momjian
79e78f0b80 Added SCO support, from Daniel Harris. 1997-07-28 00:57:08 +00:00
Bruce Momjian
5a38a119b2 Remove sparc dir, add difftime macro for sunos. 1997-07-28 00:13:39 +00:00
Bruce Momjian
cfd15d16fa Rename sparc to sunos4 directory. Was misnamed. 1997-07-28 00:08:41 +00:00
Bruce Momjian
d5e21e0924 HPUX 10 patches from Vladimir Turin 1997-07-27 18:52:43 +00:00
Bruce Momjian
3ac9d2fff3 Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius 1997-07-24 20:19:10 +00:00
Bruce Momjian
8447148aad psql: Add PAGER for \h and \?,\C fix, indices spell fix. 1997-07-24 20:01:33 +00:00
Bruce Momjian
4d8a5efcef Add single quotes to \\h set help 1997-07-24 19:11:53 +00:00
Bruce Momjian
9ad6e0db30 More pg_dump patch cleanups. 1997-07-23 17:42:25 +00:00
Bruce Momjian
a7d417cc2f Fix problems with pg_dump for iheritance, sequences, archive tables. 1997-07-23 17:15:13 +00:00
Bruce Momjian
41b805b913 Solaris .similar update. 1997-07-16 02:25:16 +00:00
Marc G. Fournier
012cb6d8c8 Search for ginstall before the other installs...
As requested by Dr. Andrew C.R. Martin
1997-07-15 23:11:38 +00:00
Bruce Momjian
441648d955 .similar patch for irix 1997-07-15 17:16:46 +00:00
Bruce Momjian
5eb4fadeaa Prevent psql optarg free-ing 1997-07-14 22:08:56 +00:00
Bruce Momjian
31fba1d974 Mips sysv4 support. 1997-07-14 16:52:13 +00:00
Bruce Momjian
10da89c1fb Add sysv4 support to configure and docs. 1997-07-14 16:47:36 +00:00
Bruce Momjian
e3be2f9dd7 Update supported ports for 6.1.1 release. 1997-07-14 16:37:36 +00:00
Bruce Momjian
69e5d63839 AIX nm fix from Gerhard 1997-07-13 19:52:10 +00:00
Bruce Momjian
0fca4afbf4 Change char to int as used in EOF compare, Gerhard 1997-07-12 20:31:47 +00:00
Bruce Momjian
a89f9731e9 Have pg_dumpall return proper status on exit 1997-07-12 15:57:31 +00:00
Thomas G. Lockhart
e66f5c05eb Remove endian information which is now in port-specific header files.
Note that this version is probably identical to two versions ago.
1997-07-11 14:09:00 +00:00
Thomas G. Lockhart
c6df30edb9 Modify port-specific definitions to support missing endian information.
Add extra include file for aix to find endian information.
1997-07-11 14:03:01 +00:00
Bruce Momjian
a11ad874e4 Fix for assembler from Yoshihiko ICHIKAWA 1997-07-10 02:32:51 +00:00
Bruce Momjian
3b7ee8f5f9 Allow underscores in user names. 1997-07-10 02:27:27 +00:00
Bruce Momjian
35a952a2ed Fixes from Jody Winston 1997-07-10 01:15:11 +00:00
Bruce Momjian
a5d80cb0cf Date-type fixes from Tatsuo Ishii 1997-07-08 22:06:46 +00:00
Thomas G. Lockhart
75ebaa748e Add information regarding date and time types and functions,
including arguments allowed.
1997-07-02 14:13:14 +00:00
Thomas G. Lockhart
54c38a95ee Add test results for "SET DateStyle" alternative datetime formats. 1997-07-02 01:34:24 +00:00
Thomas G. Lockhart
48b5432769 Include tests for DateStyle output format variations. 1997-07-01 00:34:34 +00:00
Thomas G. Lockhart
3ded6fd511 Fix code to do the right thing with mixed-endian clients and servers. 1997-07-01 00:32:27 +00:00
Thomas G. Lockhart
bf3bcb6a6d Include definitions for endian info if not in system includes. 1997-07-01 00:31:10 +00:00
Thomas G. Lockhart
7bdf9ba35b Add flags to allow dynamic loader to find Postgres sharable libraries without
having to modify the system-wide library database.
1997-07-01 00:29:40 +00:00
Thomas G. Lockhart
495fdfba98 Rearrange DTK_x constants.
Define constants to allow day of week decoding.
Add new datetime and timespan routines.
1997-07-01 00:25:30 +00:00
Thomas G. Lockhart
8507ddb9c6 Use common parser and encoder for timestamp data type.
Remove older date and time code (retain NEW_DATE_CODE and NEW_TIME_CODE).
Use common encoder for date and time.
Fix datetime +/- timespan math bug.
1997-07-01 00:22:46 +00:00
Bruce Momjian
43deb7a45f Fox case-sensitivity for \d and allow trailing ; on backslash commands. 1997-06-29 17:29:28 +00:00
Bruce Momjian
1952f15c5c Fix memory leak in psql. 1997-06-29 05:06:43 +00:00
Vadim B. Mikheev
eb9c8e0a59 _hash_first: release buf & metabuf if no tuples found for a key. 1997-06-28 05:45:40 +00:00
Bruce Momjian
fc96d50a5c lextest cleanup. 1997-06-25 22:21:29 +00:00
Bruce Momjian
7e75f5e8b3 Small pg_dumpall cleanup. 1997-06-25 21:24:57 +00:00
Bruce Momjian
c2010d8e4d fix for initdb --debug core dump, from Tatsuo Ishii 1997-06-25 21:12:19 +00:00
Bruce Momjian
c666255112 Typo changes in tests/ examples. 1997-06-25 19:59:57 +00:00
Thomas G. Lockhart
c05a7bd972 Test "SET DateStyle TO..." output options. 1997-06-23 15:08:59 +00:00
Thomas G. Lockhart
3267b4b767 Adapt expected output to drop ".00" from datetime seconds field.
This is compatible with abstime formats.
1997-06-23 15:07:54 +00:00
Thomas G. Lockhart
89abee4691 Test the "SET DateStyle TO..." date formatting modes. 1997-06-23 15:05:52 +00:00
Thomas G. Lockhart
45409f0cdd Remove code not previously enabled with USE_NEW_DATE and USE_NEW_TIME
#defines.
1997-06-23 15:03:45 +00:00
Thomas G. Lockhart
742425447d Drop internal routines for formatting time output. Use default formatter.
Add timezone info to abstime2tm().
1997-06-23 14:58:51 +00:00
Thomas G. Lockhart
1f4f4534a0 Use the standard date/time encoder rather than strftime() for output.
This allows use of the DateStyle session variable.
1997-06-23 14:56:15 +00:00
Thomas G. Lockhart
01264e84ba Modify EncodeDateTime() to suppress trailing ".00" in seconds field.
This matches the behavior of the original formatting for abstime.
Repair datetime + timespan date arithmetic for year boundaries.
 From patch submitted by Dave Skinner.
1997-06-23 14:50:56 +00:00
Thomas G. Lockhart
d9bccec0d2 Expunge code not enabled with USE_NEW_DATE and USE_NEW_TIME #defines. 1997-06-23 14:47:26 +00:00
Bruce Momjian
a53d85404e pg_dump, pg_dumpall cleanups. 1997-06-21 16:08:17 +00:00
Thomas G. Lockhart
374b0009fd Fix predicted output for month boundary arithmetic problems in
datetime +/- timespan. Only manifested when date is at end of month
 and time pushes the date into the next month.
1997-06-20 17:20:55 +00:00
Thomas G. Lockhart
2f09dd9958 Fix broken parsing for lists of options. Apparently broken when support was
added for keyword=value options.
1997-06-20 17:17:03 +00:00
Thomas G. Lockhart
9af564ada6 Add parser category for "DST" Daylight Savings Time qualifier on time zones. 1997-06-20 17:15:00 +00:00
Thomas G. Lockhart
3cef45d330 Fix leap year and month boundary arithmetic for datetime +/- timespan;
the problem only manifests itself when adding years/months and hours
 when the hours:minutes:seconds pushes over midnight.
Fix interpretation of times with explicit timezone when the timezone is
 in daylight savings time and is not the default timezone.
Allow interpretation of explicit timezone when it is specified as two words:
 <standard time> DST". For example, "MET DST" (Middle European Time Daylight
 Savings Time). This syntax is found in the zic package on Linux boxes at least.
1997-06-20 17:12:54 +00:00
Bruce Momjian
a75d6aaa41 Check pgdump return request. 1997-06-20 16:37:10 +00:00
Bruce Momjian
dd2c410616 Allow pg_dump to preserve owners of all objects. 1997-06-20 02:20:26 +00:00
Vadim B. Mikheev
41882fde34 setVarAttrLenForCreateTable(): use varnoold/varoattno instead of
varno/varattno.
1997-06-13 03:24:26 +00:00
Thomas G. Lockhart
380eaaa139 Add a few words from Vadim and an example on explain output.
Update the update date.
1997-06-12 23:45:54 +00:00
Vadim B. Mikheev
0f576413bc Fix replace_agg_clause() for unary operators. 1997-06-12 17:26:15 +00:00
Bruce Momjian
8f846a321c Update psql EXPLAIN help description, from Thomas. 1997-06-12 16:43:08 +00:00