Commit Graph

2366 Commits

Author SHA1 Message Date
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
Thomas G. Lockhart 97d2b92384 Add flag to supress one compiler warning regarding unused "unput" function
in flex-specific code.
1997-11-14 15:43:27 +00:00
Thomas G. Lockhart e9c31055e6 Add mention of PGDATESTYLE, PGTZ, PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
as initialization environment variables.
1997-11-14 15:41:30 +00:00
Thomas G. Lockhart 3a73060ba5 Add other initialization environment variables:
PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO
 (PGDATESTYLE, PGTZ already defined)
1997-11-14 15:38:31 +00:00
Thomas G. Lockhart f3311457ec Reformat parser table (cosmetic only). 1997-11-14 15:34:09 +00:00
Bruce Momjian 430169a5ea FIx for indexing regex stuff. Change rowoid to objoid. 1997-11-14 06:09:07 +00:00
Bruce Momjian ea4223c45f FIx for indexing regex stuff. Change rowoid to objoid. 1997-11-14 05:57:46 +00:00
Bruce Momjian 145bae2759 pg_description cleanup. 1997-11-13 03:36:42 +00:00
Bruce Momjian 5071ae2972 Add pg_description table for info on tables, columns, operators, types, and aggregates. Modify psql with new \dd operator to access description 1997-11-13 03:23:18 +00:00
Bruce Momjian 7e48d427c8 File has moved to include/catalog. 1997-11-12 03:30:33 +00:00
Thomas G. Lockhart 9507e539e2 Remove unnecessary inclusion of <ctype.h>. 1997-11-10 15:43:26 +00:00
Thomas G. Lockhart 367089b0c1 Add PGTZ environment variable to initialization code.
Rename PG_DATESTYLE to PGDATESTYLE environment variable.
Move environment variable code to a different place so it now works!
Note that regression tests can now run with "setenv PGTZ PST8PDT"
 at the frontend rather than requiring the backend to have TZ set.
1997-11-10 15:41:58 +00:00
Thomas G. Lockhart 4ebc4e39d1 Do a more complete job of supporting time zone information.
Try to save pre-existing TZ environment variable if possible.
Includes code from Keith Parks.
1997-11-10 15:37:15 +00:00
Thomas G. Lockhart b42e37bcde Change quickdie elog notice to a single message.
Clean up FloatExceptionHandler elog message source code.
1997-11-10 15:24:56 +00:00
Thomas G. Lockhart 25e950fca4 Change messages regarding "TimeRange" to say that time travel is no longer
available.
Remove lots of #ifdef'd debugging print statements.
1997-11-10 15:22:36 +00:00
Thomas G. Lockhart ced2ee8210 Clean up path handling esp. when interpreting environment variables.
Remove unused old code.
1997-11-10 15:17:44 +00:00
Thomas G. Lockhart fe36d461c2 Add errormsg initialization from patch by Keith Parks. 1997-11-10 15:15:40 +00:00
Thomas G. Lockhart 2b51c92d30 Clean up handling of environment variables in path names. 1997-11-10 15:14:34 +00:00
Bruce Momjian 725bbde05c Clean up indenting. 1997-11-10 05:16:00 +00:00
Bruce Momjian baeb8790ac Fix case issues with quotes. 1997-11-10 05:10:50 +00:00
Marc G. Fournier 0f367cf8c8 From: "Gillies, Robert" <GilliesR@Nichols.com>
Add: Stratus computer (a fault tolerant Unix box running an Intel I960
processor).
1997-11-10 03:31:49 +00:00
Bruce Momjian 50729ac764 Patch from Goran Thyni 1997-11-10 02:21:18 +00:00
Marc G. Fournier 242625f26b From: Bryan Henderson <bryanh@giraffe.netgate.net>
My analysis of the formerly mentioned IPC reinitialization problem was
hampered by an imprecise error message.  I have rewritten it so it is
clearer and more accurate.
1997-11-09 04:47:09 +00:00
Marc G. Fournier 213d7b1ae3 From: Bryan Henderson <bryanh@giraffe.netgate.net>
The attached patch makes elog() write the message to stderr if there is
no frontend to talk to.
1997-11-09 04:43:35 +00:00
Marc G. Fournier 8d0fe2d0d4 Oops, shouldn't have added that extra, it seems... :) 1997-11-09 03:58:20 +00:00
Marc G. Fournier 3dfcef7c5f Add i586-pc-sco3.2v5.0.2 to .similar file
Pointed out by: Pieter Huyser <pieter@inetsys.alt.za>
1997-11-09 03:45:39 +00:00
Bruce Momjian 6016148c61 new alpha linux locking from Travis Melhiser <melhiser@viper.co.union.nc.us> 1997-11-07 21:35:41 +00:00
Bruce Momjian 06a7001350 Update postmaster manual page. 1997-11-07 21:25:07 +00:00
Bruce Momjian 5af43965cf Update of Java driver from Peter Mount. 1997-11-07 21:07:48 +00:00
Bruce Momjian c17fa36d3c Add Unix domain socket support, from Goran Thyni, goran@bildbasen.se 1997-11-07 20:52:15 +00:00
Thomas G. Lockhart 27b12bfd54 Include transam.h to get NullTransactionId defined
for use by recently created macros.
1997-11-07 18:39:38 +00:00
Thomas G. Lockhart 4676b3034a Routines for database initial access info and support. 1997-11-07 07:05:46 +00:00
Thomas G. Lockhart 8a7f79c83c Add database.c for database initial access info and support. 1997-11-07 07:03:37 +00:00
Thomas G. Lockhart acc2843025 Implement CREATE DATABASE/WITH LOCATION=.
Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT.
Re-enable JOIN= option in CREATE OPERATOR statement (damaged for v6.2).
Allow more SQL and/or Postgres reserved words as column identifiers
 or, if there are shift/reduce problems, at least as column labels.
1997-11-07 07:02:10 +00:00
Thomas G. Lockhart 6210dd5264 File is created by make from source in ../output 1997-11-07 06:47:41 +00:00
Thomas G. Lockhart ea567d2fad Declare routines which support SET keyword = value SQL commands. 1997-11-07 06:45:16 +00:00
Thomas G. Lockhart 7016678aaf Enable SET value = DEFAULT by passing null parameter to parsers.
Enable SET TIME ZONE using TZ environment variable.
1997-11-07 06:43:16 +00:00
Thomas G. Lockhart b2905ea43a Describe new command to create alternate database locations. 1997-11-07 06:40:45 +00:00
Thomas G. Lockhart 7d1f2f8a27 Support alternate database locations. 1997-11-07 06:38:51 +00:00
Thomas G. Lockhart d98f2f9985 Support "with location" capability for database creation. 1997-11-07 06:33:57 +00:00
Thomas G. Lockhart 6698389349 Change error message for rejected input. 1997-11-07 06:32:05 +00:00
Thomas G. Lockhart c934ee7859 Change phrasing of input error message.
Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
1997-11-07 06:30:20 +00:00
Thomas G. Lockhart 7e1a8a90f8 Support "delimited identifiers" for \d tablename command.
This allows mixed-case identifiers if surrounded by double quotes.
Add mention of "with location" clause for "create database" in help.
1997-11-07 06:27:55 +00:00
Thomas G. Lockhart c97f6fd197 Add "-D location" to specify alternate database location. 1997-11-07 06:25:25 +00:00
Thomas G. Lockhart 75d5ce28ea Add initlocation. 1997-11-07 06:24:33 +00:00
Thomas G. Lockhart 7387e88720 Change "more" to "cat" to allow typeahead while making backend. 1997-11-07 06:22:36 +00:00
Thomas G. Lockhart b5417a39da Create alternate location(s) for databases. 1997-11-07 06:21:39 +00:00
Bruce Momjian 5aaf00f3f3 Remove NOT_USED for Massimo. 1997-11-05 21:18:59 +00:00
Bruce Momjian 7589967613 Remove time travel from manuals. 1997-11-03 04:47:08 +00:00
Bruce Momjian 475a8873b0 Add paging for \d, and fix \i. 1997-11-03 04:21:49 +00:00
Bruce Momjian 89ad327099 Portability fix for pg_passwd. 1997-11-02 18:15:20 +00:00
Vadim B. Mikheev 32cd09ac6d Good Bye, Time Travel! 1997-11-02 15:27:14 +00:00
Bruce Momjian 6cc0a00dec Fix acl error, and remove duplicate pqtrace. 1997-11-01 05:21:57 +00:00
Bruce Momjian 1e7ba76e43 Indexes for LIKE and ~, !~ operations. 1997-10-31 00:50:39 +00:00
Bruce Momjian 0308f91cd2 No more warnings on macros, thanks VAdim. 1997-10-30 23:37:01 +00:00
Bruce Momjian fcb47f8884 Remember release.txt change. 1997-10-30 22:37:28 +00:00
Bruce Momjian 818f2644e9 Update version to 6.3. dump/reload for 6.1 version users. 1997-10-30 22:09:04 +00:00
Bruce Momjian 65c00f7e80 We have multi-column indexes, so update manual. 1997-10-30 18:41:03 +00:00
Bruce Momjian ef1fc0c90d FIx for SCO compiles. 1997-10-30 18:31:47 +00:00
Bruce Momjian 0e58306857 Fix for java to allow password, european dates,from Peter T Mount 1997-10-30 18:24:44 +00:00
Bruce Momjian 2cc73c0d42 FIx for libptcl make, from Tatsuo Ishii. 1997-10-30 17:36:58 +00:00
Bruce Momjian 9a8fcee342 Patch for tcl library crash, from Jan Wieck. 1997-10-30 17:29:57 +00:00
Bruce Momjian 9f133d23ff Remove duplocate lock_timeout value. 1997-10-30 17:23:59 +00:00
Thomas G. Lockhart e037c351d4 Update for modified quoting style in some error messages. 1997-10-30 16:53:51 +00:00
Thomas G. Lockhart be74113f76 Add initial backend support for SET/SHOW/RESET TIME ZONE.
Uses TZ environment variable.
 Needs additional schemes for brain-dead SQL92 time offsets.
1997-10-30 16:52:11 +00:00
Thomas G. Lockhart 0dd738148c Support SQL92 delimited identifiers by checking some attribute names
for mixed-case and surrounding with double quotes.
1997-10-30 16:48:03 +00:00
Thomas G. Lockhart cc1b420cfd Add routines istrue() and isfalse() to directly evaluate boolean type. 1997-10-30 16:45:12 +00:00
Thomas G. Lockhart 770352d279 Add support for SQL92 delimited identifiers.
Add support for SQL3 IS TRUE and IS FALSE.
Augment support for SQL92 SET TIME ZONE...
1997-10-30 16:39:27 +00:00
Thomas G. Lockhart 0a9be2db9b Add support for delimited identifiers. Include new exclusive state "xd".
Remove unused ScanString variable and code.
1997-10-30 16:36:39 +00:00
Thomas G. Lockhart 0175759e17 Fix up elog messages for consistant usage of quotes around arguments. 1997-10-30 16:34:22 +00:00
Bruce Momjian 80440a51fa Fix for international identifiers, from Tatsuo Ishii 1997-10-30 15:28:25 +00:00
Bruce Momjian 06d88ecb17 Fix for when POSIX time not defined. 1997-10-30 14:06:47 +00:00
Bruce Momjian 1017ddd003 Fix for java timestamp type from teunis@sigil.computersupportcentre.com 1997-10-30 13:55:41 +00:00
Vadim B. Mikheev 6cfe951a42 CREATE PROCEDURAL LANGUAGE mans (Jan). 1997-10-30 05:38:20 +00:00
Bruce Momjian 43514b8485 Irix LORDER addition. 1997-10-30 05:36:38 +00:00
Bruce Momjian 58ed1232f5 Fix for netbsd locking, from Henry B. Hotz. 1997-10-30 05:24:19 +00:00
Bruce Momjian e2617c856e Fix for compile warning, from Ernst Molitor. 1997-10-30 05:07:58 +00:00
Bruce Momjian 5680f8795f Fix for array handling, from Gerhard Hintermayer 1997-10-30 05:00:56 +00:00
Bruce Momjian 1dfde614a4 Make configure more automated, from Brook Milligan. 1997-10-30 04:46:45 +00:00
Bruce Momjian cf1bfb3588 Fix for perl from Brook Milligan 1997-10-30 04:38:30 +00:00
Bruce Momjian a47158a0e1 Add script to check regression tests. 1997-10-30 04:27:14 +00:00
Bruce Momjian c35d7fb835 Rename pg_dump -H option to -h. 1997-10-30 03:59:59 +00:00
Bruce Momjian 868859b7e3 AIX patch from Darren King. 1997-10-30 03:37:28 +00:00
Bruce Momjian 9939e55513 Remove strcasecmp for univel. 1997-10-30 03:28:18 +00:00
Bruce Momjian d48006180c Generate error on large integer. 1997-10-30 01:55:49 +00:00
Bruce Momjian 97b1bb2281 New backend_dir html source. 1997-10-29 23:48:18 +00:00
Vadim B. Mikheev 5071d3124a Added support for shlib for BSD44_derived & i386_solaris. 1997-10-28 15:13:10 +00:00
Vadim B. Mikheev 7bff4c5078 Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan). 1997-10-28 15:11:45 +00:00
Bruce Momjian 9db2992640 Rename postgres95 to postgresql. 1997-10-28 03:20:31 +00:00
Bruce Momjian ee08c36dd3 New backend dirs html file. 1997-10-27 17:53:38 +00:00
Bruce Momjian 8cae12b13b Add new html development tools, and flow chart. 1997-10-27 16:59:20 +00:00
Vadim B. Mikheev 6855820e8f c.h:
#define StrNCpy(dst,src,len)    \
	(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : \
	NULL,(void)(dst))
	     ^^^^^^ - to avoid "value computed is not used" from gcc
	in ma-a-any places (should to fix thouse places instead, but ...
	time)

config.h.in:
/*
 * TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside
 * transaction block after this query is done.
 */
#define TBL_FREE_CMD_MEMORY
- this is default now.
1997-10-27 12:07:13 +00:00
Vadim B. Mikheev 9b3d93293a Free ascii representations of compared values! 1997-10-27 12:00:43 +00:00
Vadim B. Mikheev a2c476b555 Use shared lock when building indices 1997-10-27 11:52:43 +00:00
Vadim B. Mikheev 110ba08a12 Fix binary cursors broken by MOVE implementation.
(Thanks to Bruce for finding what caused problem).
1997-10-27 08:55:16 +00:00
Thomas G. Lockhart f15eeff1bd Modify to reflect changes in boolean input behavior (rejects bad input
rather than assuming FALSE).
1997-10-25 06:03:08 +00:00
Thomas G. Lockhart ac357fb44c Remove extraneous row from user_relns table. Don't know where it came from... 1997-10-25 06:01:21 +00:00
Thomas G. Lockhart 2cad160f13 Have compiler use 486 instruction set. (Should add item in linux FAQ). 1997-10-25 05:58:56 +00:00
Thomas G. Lockhart f10b639237 Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP,
CURRENT_USER.
Add syntax for primary and foreign keys.
Change optional syntax in CREATE INDEX to avoid parsing conflict with
 TIMESTAMP WITH TIME ZONE data type (use USING <class> rather than WITH...).
Decouple various categories of data type syntax to allow the most possible
 non-ambiguous extensions to SQL92 for column names and labels. This should
 make the parser a bit more understandable, or at least easier to find
 where and how the data types are handled.
Support syntax for IN and EXISTS clauses with subselects.
Support SQL92 syntax for IS TRUE/IS FALSE/IS NOT TRUE/IS NOT FALSE.
1997-10-25 05:56:41 +00:00
Thomas G. Lockhart 27d0d1a159 Add SQL92 reserved words for primary and foreign keys.
Add keywords for national character types.
Shorted date/time keyword token names for convenience.
Add SQL3 reserved words TRUE and FALSE.
1997-10-25 05:44:11 +00:00
Thomas G. Lockhart 60fee0d67c Add conversion routines for int2, int4, and oid to and from text.
Change a few routine names to ensure <= 16 characters in name
 to fit correctly into pg_proc.
1997-10-25 05:40:43 +00:00