Commit Graph

2366 Commits

Author SHA1 Message Date
Thomas G. Lockhart dc88e795d1 Change Constraint structure to be a full node structure.
Add new constraint types PRIMARY, UNIQUE.
1997-12-04 23:55:52 +00:00
Thomas G. Lockhart 77356a7fc1 Add Constraint node type.
Remove TimeRange node type tag (everything else already gone).
1997-12-04 23:43:59 +00:00
Thomas G. Lockhart 352b36877f Add 'GERMAN' style to date/time output.
Probably have it wrong (dd.mm/yyyy) but can change it when we know.
 Input routines always handled it.
1997-12-04 23:30:52 +00:00
Thomas G. Lockhart d7e0e61d84 Run through toupper() conversion in the forward direction.
Most processors should optimize this a bit better wrt cache prefetch.
1997-12-04 23:28:20 +00:00
Thomas G. Lockhart 6ad698c928 Add some printing capability for a few more node types (CreateStmt,
IndexStmt, IndexElem, ColumnDef).
1997-12-04 23:20:32 +00:00
Thomas G. Lockhart 0295864514 Add 'GERMAN' option to DateStyle. 1997-12-04 23:17:13 +00:00
Thomas G. Lockhart 0569136e48 Change Constraint structure name from ConstraintDef to Constraint.
Change reference to field inside to be compatible with new definition
 as a "node" structure rather than a specialty structure.
1997-12-04 23:15:28 +00:00
Thomas G. Lockhart 1ac4ae4993 Add SQL92-compliant syntax for constraints.
Implement PRIMARY KEY and UNIQUE clauses using indices.
1997-12-04 23:07:23 +00:00
Bruce Momjian 8d30b40843 Update description for PGHOST and unix domain sockets. Add warning for failed connections. 1997-12-04 20:32:35 +00:00
Bruce Momjian 7d2fafe636 Update description for PGHOST and unix domain sockets. Add warning for failed connections. 1997-12-04 20:26:37 +00:00
Marc G. Fournier 8a57e21c30 Incorporate patch from Matt(maycock@intelliquest.com) for dumping ACLs
Clean up formatting of code

Integrate new functions into dumpTable


This is not tested yet...have to recompile server due to patches from
Todd...but this compiles cleanly as it stands now
1997-12-04 01:31:28 +00:00
Marc G. Fournier a91ad1af09 Missed a few files from Todd's patch...oops :) 1997-12-04 00:34:01 +00:00
Marc G. Fournier 4c04f7724e From: todd brandys <brandys@eng3.hep.uiuc.edu>
An extension to the code to allow for a pg_password authentication database
that is *seperate* from the system password file
1997-12-04 00:28:15 +00:00
Bruce Momjian 333323f304 Fix vacuum analyze syntax problem. 1997-12-02 16:09:15 +00:00
Marc G. Fournier 899326a78b the -l option doesn't take a port option, so the man page shouldn't say it
does
1997-12-02 03:43:54 +00:00
Marc G. Fournier 3253f9e222 gmake distclean wasn't removing the configure generated Makefile in
pg_version...

...fixed
1997-12-02 03:19:42 +00:00
Thomas G. Lockhart 8f4865bdd7 Remove premature code in constraint parsing.
Change elog WARN to NOTICE for unimplemented constraints.
1997-12-02 02:54:15 +00:00
Marc G. Fournier 9257cb65b2 Linux related change to .similar to handle 'a.out' files...
From: Herb Richter <hgr@buynet.com>
1997-12-02 02:43:08 +00:00
Bruce Momjian b05eddaaab Fix pg_dump, and libpq changes. 1997-12-01 22:02:49 +00:00
Bruce Momjian dfc1a6a848 Document pg_dump -z, clean up option list. Fix problem with libpq handling of field names uppercase code. 1997-12-01 21:01:24 +00:00
Thomas G. Lockhart df823bc42d Deep-six tests using time travel, which has been removed from Postgres. 1997-12-01 02:51:07 +00:00
Thomas G. Lockhart 7a86a2a9e5 Add tests for varchar() and combinations of string types. 1997-12-01 02:48:47 +00:00
Thomas G. Lockhart 1d7b6f14e2 Adjust tests to reflect removal of time travel.
Add tests for strings and varchar.
1997-12-01 02:46:13 +00:00
Thomas G. Lockhart f901971c86 Adjust output to reflect changes in tests. 1997-12-01 02:44:53 +00:00
Thomas G. Lockhart 07c1837f50 Change elog WARN messages for UNIQUE and PRIMARY, FOREIGN KEY
to NOTICE messages so that execution proceeds rather than halting.
 These clauses are ignored as stated in the messages.
Allow NOT NULL UNIQUE syntax (both were allowed individually before).
Allow Postgres-style casting ("::") of non-constants.
1997-11-30 23:11:10 +00:00
Thomas G. Lockhart 361f9e7f8d Add comments and move a few declaration blocks to help readability.
No functional changes this time!
1997-11-30 23:05:39 +00:00
Thomas G. Lockhart b12ba5f695 Specify hash table support functions for float8 and int4 rather than using
btree support functions. Don't know why this was that way, but would
 assume that these should be consistant with all other types with
 hash support. Regression tests OK.
Change a few comments and field alignment to make things more readable.
1997-11-30 23:03:28 +00:00
Thomas G. Lockhart 2c98143681 Add datetime and timespan hash index declarations. Use float8 for both;
certainly OK for datetime since it is a float8 and should be OK for
 timespan since the first field within timespan is a float8.
Use float8 hash function for time type (rather than char8).
1997-11-30 22:58:07 +00:00
Thomas G. Lockhart d16b4767fe Remove duplicate block of declarations. Must have been introduced recently
since I've run ./duplicate_oids (and found no problems) in the last
 couple of months.
Add and modify some DESCR() entries to describe functions.
1997-11-30 22:52:24 +00:00
Thomas G. Lockhart abedcddbd1 Change hash field for a few equality operators so all have it set.
Don't know why these few were not already this way, and don't know if
  there is some hidden problem with this, but assume it was done
  accidentally as entries were copied from other operators.
 Regression tests are OK, but...
Move one block of declaration source to keep OIDs in increasing order.
 Did not change OID values, just moved source code.
1997-11-30 22:49:22 +00:00
Thomas G. Lockhart 9faa6cabc5 Add pg_type.h to include list to regain declaration of type OID assignments.
Lost these when some include files were reorganized.
 Regression test could not compile.
1997-11-30 22:42:58 +00:00
Bruce Momjian 7059464335 Fix for \dd on types. 1997-11-30 17:46:01 +00:00
Bruce Momjian 002796b5ca Rename heap_destroyr to heap_destroy, heap_destroy to heap_destroy_with_catalog. 1997-11-28 17:28:02 +00:00
Bruce Momjian c445ba331b Rename heap_create to heap_create_and_catatlog, rename heap_creatr to heap_create(). 1997-11-28 04:40:40 +00:00
Bruce Momjian a8926e0461 Salt fix for password, from Tatsuo Ishii. 1997-11-27 03:11:55 +00:00
Bruce Momjian 241a87b951 Prevent flushing from packets, by Massimo. 1997-11-27 03:01:12 +00:00
Bruce Momjian db00632e0f Cleaups of comments. 1997-11-27 02:23:02 +00:00
Bruce Momjian bac80c218e Add README for parser directory 1997-11-26 15:36:00 +00:00
Bruce Momjian d79b9a1b7a Re-order args for TypeCreate() to be clearer. 1997-11-26 04:50:47 +00:00
Bruce Momjian 7c00ffb843 Fix from Zeugswetter Andreas DBT for Sendproc. 1997-11-26 04:37:53 +00:00
Bruce Momjian 983ec2cb4b Make parser functions static where possible. 1997-11-26 03:54:23 +00:00
Bruce Momjian b704426618 Make parser functions static where possible. 1997-11-26 03:43:18 +00:00
Bruce Momjian 97ad0b1cd4 \dd fix. 1997-11-26 02:34:28 +00:00
Bruce Momjian 43c7114b48 Cleanup up include files. 1997-11-26 01:26:13 +00:00
Bruce Momjian 598e86f3b3 Cleanup up include files. 1997-11-26 01:14:33 +00:00
Bruce Momjian 4a5b781d71 Break parser functions into smaller files, group together. 1997-11-25 22:07:18 +00:00
Bruce Momjian 3aff4011c7 Remove gram problems with archive. 1997-11-24 16:55:22 +00:00
Bruce Momjian 91742c5c24 Change heading. 1997-11-24 14:15:11 +00:00
Bruce Momjian 4857de6be4 Cleanup wrapping in \d commands. 1997-11-24 14:05:02 +00:00
Bruce Momjian a986b7ba4d Move descriptions to pg_proc, add descriptions. 1997-11-24 13:43:29 +00:00
Bruce Momjian 49656346b8 Move dbcommands.c to commands/. It should not be in the parser directory. 1997-11-24 05:32:56 +00:00
Bruce Momjian 36e3df0767 Move dbcommands.c to commands/. It should not be in the parser directory. 1997-11-24 05:21:03 +00:00
Bruce Momjian f7f2e18f8e Remove tqual.h includes not needed. 1997-11-24 05:09:50 +00:00
Bruce Momjian 1409819a87 Fix for textcat on varchar() fields. 1997-11-23 21:39:12 +00:00
Bruce Momjian f4253b0b49 Archive cleanups. 1997-11-21 19:59:39 +00:00
Bruce Momjian 195f78e43c More archive cleanup. 1997-11-21 19:12:41 +00:00
Bruce Momjian 043cebce2b More archive cleanup. 1997-11-21 19:02:59 +00:00
Bruce Momjian 629e27284d Remove unused files. 1997-11-21 18:22:04 +00:00
Bruce Momjian 3fa2bb316c Remove archive stuff. 1997-11-21 18:12:58 +00:00
Bruce Momjian 0889dcd6f7 Remove archive stuff. 1997-11-21 18:04:26 +00:00
Bruce Momjian e9e1ff226f Remove all time travel stuff. Small parser cleanup. 1997-11-20 23:24:03 +00:00
Bruce Momjian e075271c17 Fix socket file permissions, from Goran Thyni. 1997-11-19 18:28:59 +00:00
Bruce Momjian 58527aa227 Add to .similar file, Tatsuo Ishii 1997-11-19 17:57:42 +00:00
Bruce Momjian 474de35053 FIx for unix domain sockets, from Goran Thyni. 1997-11-19 17:52:00 +00:00
Vadim B. Mikheev 21261b031c Call ExecEvalExpr with &isDone (not with NULL). 1997-11-19 05:28:14 +00:00
Bruce Momjian b686104cd5 Change \df order. 1997-11-19 03:14:19 +00:00
Bruce Momjian 7372b8c2da Remove stuff that is now in psql \d. 1997-11-18 23:04:27 +00:00
Vadim B. Mikheev c5d7a27275 Get rid of unused variable 'address'. 1997-11-18 07:58:10 +00:00
Bruce Momjian 20858bdd96 Make \d commands not wrap over 80 cols. 1997-11-18 06:46:31 +00:00
Bruce Momjian 79daac6bad Add descriptions for types and operators. 1997-11-18 05:22:51 +00:00
Bruce Momjian bd6733f9ce Clean out pgbuiltin now that new psql \d commands exist. 1997-11-17 22:15:03 +00:00
Bruce Momjian d0928a3af3 Fix \e for empty file. 1997-11-17 17:54:24 +00:00
Bruce Momjian d0471244e6 Remove 16 char limit on system table/index names. Rename system indexes. 1997-11-17 16:59:36 +00:00
Thomas G. Lockhart 80c1e82232 Unscramble port selection logic to avoid compiler complaints about
uninitialized variables. I _think_ the logic is preserved...
1997-11-17 16:42:39 +00:00
Thomas G. Lockhart c2f4779ddf Define prototype for ExecutorLimit() to avoid compiler complaints. 1997-11-17 16:41:04 +00:00
Thomas G. Lockhart 680ef08511 Add DTK_DOY to help decode day of year fields. 1997-11-17 16:39:58 +00:00
Thomas G. Lockhart 45a8b666c0 Include first text in some type descriptions (~29 entries). 1997-11-17 16:39:16 +00:00
Thomas G. Lockhart 4b19101fc3 Update UNION and subselect syntax.
Support SQL92 syntax for type coersion of strings (type 'typeval').
 Example: "DATETIME 'now'". This works only for string constants and can
 not replace the CAST and ::type syntax which behave identically in this
 context.
1997-11-17 16:37:24 +00:00
Thomas G. Lockhart 6df962668a Update generated source for scan.l. 1997-11-17 16:33:21 +00:00
Thomas G. Lockhart 3d4d1e14f8 Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F').
Check decoding of integer in x - y syntax (already done for most ints).
1997-11-17 16:31:39 +00:00
Thomas G. Lockhart 2fa330284c Use limits.h for INT, SHRT, and SCHAR min and max values rather than
hardcoded values.
1997-11-17 16:26:27 +00:00
Thomas G. Lockhart 174f984b76 Use SHRT_MIN and SHRT_MAX for 2-byte integer limits. 1997-11-17 16:24:17 +00:00
Thomas G. Lockhart e7946a53ad Allow fractional values for delta times (e.g. '2.5 days').
Check valid numeric input more carefully for delta times.
Implement day of year as possible input to datetime_part().
1997-11-17 16:23:33 +00:00
Thomas G. Lockhart 55a6b7a9be Include unistd.h to get read/write function declarations.
Remove unused variable addrLen.
1997-11-17 16:18:07 +00:00
Thomas G. Lockhart 8e86c46be3 Add storage/ipc.h include file to get read/write function declarations. 1997-11-17 16:17:14 +00:00
Thomas G. Lockhart c47eaac952 Fix compiler complaints about mismatched pointer args using coersions. 1997-11-17 16:10:06 +00:00
Bruce Momjian 0f62b3024e Fix for \e on empty file. 1997-11-17 05:23:11 +00:00
Marc G. Fournier 9bcf350cc7 Apply Bryan's IPC Patches
From: Bryan Henderson <bryanh@giraffe.netgate.net>
1997-11-17 03:47:31 +00:00
Bruce Momjian 930bce33db Re-ordeer new \d command output. 1997-11-16 05:32:16 +00:00
Bruce Momjian 12fc33077b New \dS psql command. initdb cleanup. 1997-11-16 04:36:52 +00:00
Bruce Momjian 1c32d285a6 Remove pg_magic, defaults, server, hosts, and demon tables. unused. 1997-11-15 20:58:05 +00:00
Bruce Momjian 0dec3a8d37 Fix problem of COPY before vacuum. 1997-11-15 17:15:35 +00:00
Bruce Momjian 4e9df155f0 Add new \df psql option and oid8types() function. 1997-11-15 16:32:25 +00:00
Thomas G. Lockhart 2e0976e003 Fix testing problem when 'current' equal to 'now' for separate inserts
on fast machines with fast disks.
Adjust a few other tests to be more complete.
1997-11-15 02:55:57 +00:00
Thomas G. Lockhart 644b37c095 Add mention of new environment variables for session initialization.
Cross-reference libpq(3).
1997-11-15 02:47:23 +00:00
Bruce Momjian 2f4ccfe053 Make flowchart file smaller. 1997-11-14 22:00:32 +00:00
Bruce Momjian 4cbc06cff1 Add new psql \da, \do, and \dT options. 1997-11-14 21:38:25 +00:00
Thomas G. Lockhart 208dae3727 Set time zone and date style environment variables.
Update banner message regarding time zone.
1997-11-14 15:57:12 +00:00
Thomas G. Lockhart 0f2189efff Include flex output in the standard distribution to fix problems with
old AT&T lexers and exclusive states (Solaris has trouble and probably
 others).
1997-11-14 15:50:22 +00:00
Thomas G. Lockhart 6eaafef1df Supress cleaning scan.c since we will try to include it in the distribution.
This should help Solaris and (presumably) other distributions with
 old AT&T-descended lex programs which can't handle "exclusive states".
1997-11-14 15:48:19 +00:00