Vadim B. Mikheev
dfa23f5e41
SELECT FOR UPDATE syntax
1999-01-05 15:46:25 +00:00
Bruce Momjian
da361ee24b
Add max oid display, rather than returning just a dash for the last entry.
1998-12-31 20:09:49 +00:00
Jan Wieck
0e9d75c6ac
Added NUMERIC data type with many builtin funcitons, operators
...
and aggregates.
Jan
1998-12-30 19:56:35 +00:00
Thomas G. Lockhart
18bdefa23f
Fix reference to null pointer when no aggregate function candidates
...
are available. Problem reported by David Sauer <davids@iol.cz >.
Modify information in resulting error message to indicate both agg name
and data type.
1998-12-23 14:38:40 +00:00
Bruce Momjian
3cd3be92ff
Fix deadlock so it only checks once.
1998-12-18 19:45:38 +00:00
Vadim B. Mikheev
3498d878cb
SET TRANSACTION ISOLATION LEVEL ...
...
LOCK TABLE IN ... MODE
...implemented
1998-12-18 09:10:39 +00:00
Vadim B. Mikheev
3f7fbf85dc
Initial MVCC code.
...
New code for locking buffer' context.
1998-12-15 12:47:01 +00:00
Marc G. Fournier
df1468e251
Many more cleanups...
1998-12-14 06:50:32 +00:00
Marc G. Fournier
7c3b7d2744
Initial attempt to clean up the code...
...
Switch sprintf() to snprintf()
Remove any/all #if 0 -or- #ifdef NOT_USED -or- #ifdef FALSE sections of
code
1998-12-14 05:19:16 +00:00
Thomas G. Lockhart
2b189aa953
Improve CASE statement support.
...
Try to label CASE columns for a SELECT if not specified with an AS clause.
1998-12-13 23:56:44 +00:00
Thomas G. Lockhart
44cf948467
Fix up error messages when looking up functions and operators to not
...
make the sometimes misleading claim that more than one candidate was
identified. Now say "Unable to identify...".
1998-12-13 23:54:40 +00:00
Bruce Momjian
31d825ba07
While investigating a user's complaint, I have found some memory
...
destructions in 6.4 source using purify.
(1) parser/gram.y:fmtId()
It writes n+3 bytes into n+1 byte-long memory area if mixed case or
non-ascii identifiers given.
(2) catalog/index.c:
ATTRIBUTE_TUPLE_SIZE bytes are allocated but
sizeof(FormData_pg_attribute) bytes are written. Note that
ATTRIBUTE_TUPLE_SIZE is smaller than
sizeof(FormData_pg_attribute). (for example, on solaris 2.6,
Tatsuo Ishii
1998-12-13 04:37:51 +00:00
Bruce Momjian
589f5aa241
I have a simple patch about the treatment of functions.
...
But it may be self-satisfied.
Please check my patch at the end of this posting.
Case 1. executor evaluates functions twice
Hiroshi Inoue
Inoue@tpf.co.jp
1998-12-13 04:16:51 +00:00
Thomas G. Lockhart
53b476798a
Define routines and catalog entries for string min()/max() functions.
...
Extend new type coersion techniques to aggregates.
Clean up a few elog() messages.
1998-12-08 06:19:15 +00:00
Thomas G. Lockhart
bedd04a551
Implement CASE expression.
1998-12-04 15:34:49 +00:00
Vadim B. Mikheev
6beba218d7
New HeapTuple structure/interface.
1998-11-27 19:52:36 +00:00
Vadim B. Mikheev
34680930d5
Fix using indices in OR.
...
EXPLAIN all indices used.
1998-11-22 10:48:45 +00:00
Marc G. Fournier
4283089d07
Okay, this shoudl provide a fix for the freebsd problem...
...
Added a ELF_SYS variable and check to configure.in...
1998-10-30 04:54:06 +00:00
Bruce Momjian
53b8ea58d3
Fix for serial creation.
1998-10-28 16:06:54 +00:00
Bruce Momjian
ca2995be7b
Remove duplicate CIDR funcs by using coerce entries.
1998-10-22 13:51:07 +00:00
Bruce Momjian
6e13e0c684
cleanup of keywords.c
1998-10-18 23:30:17 +00:00
Bruce Momjian
07ed634c18
Resort keywords for Jan.
1998-10-18 23:29:27 +00:00
Bruce Momjian
71a5da47d2
Disable inet.
1998-10-17 04:08:40 +00:00
Thomas G. Lockhart
56792f3729
Allow TIMESTAMP as a column name or general identifier.
...
timestamp had become a token a while ago, but had been omitted from the
keywords.c until recently. This uncovered the omission in the ColId decl.
1998-10-14 15:57:25 +00:00
Marc G. Fournier
cd3a8e232c
change configure so that if postgresql isn't being installed as root,
...
do not configure in the perl5 interface.
the perl5 interface needs to be installed under /usr/local/lib/perl5/*, which
is generally owned by root. This allows a non-root build/install with the
only root requirement being the make/install of hte perl5 stuff...
1998-10-13 17:26:50 +00:00
Bruce Momjian
2ac3173d75
major/minor shared name cleanup
1998-10-09 21:28:50 +00:00
Thomas G. Lockhart
d12d4c78e5
Add wildcard asterisk to the UNLISTEN syntax.
1998-10-09 07:06:37 +00:00
Bruce Momjian
af45dab6d7
Fix for BSDI shared libraries.
1998-10-09 03:08:00 +00:00
Bruce Momjian
173c555948
Make functions static or ifdef NOT_USED. Prevent pg_version creation.
1998-10-08 18:30:52 +00:00
Bruce Momjian
2d69fd90b9
Integrate new IP type from Tom Ivar Helbekkmo.
1998-10-03 05:41:01 +00:00
Bruce Momjian
9b21a18cee
the following little patch adds array references to query
...
parameters. With it applied a function like
CREATE FUNCTION getname(oid8, int4) RETURNS name AS
'SELECT typname FROM pg_type WHERE oid = $1[$2]'
LANGUAGE 'sql';
is possible. Mainly I need this to enable array references in
expressions for PL/pgSQL. Complete regression test ran O.K.
Jan
1998-10-02 16:23:07 +00:00
Bruce Momjian
c17b2d1b16
Fix for constbyval.
1998-10-01 22:51:22 +00:00
Bruce Momjian
33572dd7ed
Fix for constbyval .
1998-10-01 22:45:32 +00:00
Thomas G. Lockhart
9bb7096bcd
Update to track newest gram.y.
1998-09-30 05:48:28 +00:00
Thomas G. Lockhart
c683abb1f0
Add as many keywords as possible to column identifier or label lists.
...
Add "timestamp" to list of tokens in keywords.c.
Before, TIMESTAMP WITH TIME ZONE did not actually parser.
Reorder token lists to be more alphabetical.
Remove ARCHIVE keyword which was deprecated in v6.3.
1998-09-30 05:47:57 +00:00
Thomas G. Lockhart
d76b4069ad
Update to track gram.y.
...
Had removed PARSEDEBUG statements...
1998-09-25 13:45:12 +00:00
Thomas G. Lockhart
ee88006cf2
Clean up code in analyze.c for SERIAL data type.
...
Remove _all_ PARSEDEBUG print statements.
1998-09-25 13:36:08 +00:00
Bruce Momjian
b68d690dd3
New gram.c
1998-09-18 03:02:47 +00:00
Thomas G. Lockhart
20693de474
Support specifying PRIMARY KEY for the SERIAL type.
...
Change DEFAULT NULL to send back a NULL pointer
rather than a string "NULL". This seems to work, where sending
the string led to type conversion problems (and probably the wrong
thing anyway).
1998-09-16 14:29:35 +00:00
Thomas G. Lockhart
7c30ac961f
Support specifying PRIMARY KEY for the SERIAL type.
...
Check for a constraint if is_sequence is set and omit making
a UNIQUE index if so, since the primary key will cover that for us.
1998-09-16 14:25:37 +00:00
Thomas G. Lockhart
198bcef025
Use oper_select_candidate() for unary operators
...
rather than func_select_candidate().
Fix oper_select_candidate() to work with a single operator argument.
Repair left operator checking for null return from candidate list.
1998-09-16 14:22:22 +00:00
Marc G. Fournier
672bc164ce
Forgot to remove README-1ST from the repository ...
1998-09-15 02:25:09 +00:00
Thomas G. Lockhart
8ee1c1936c
Update to new DECLARE and FETCH features in gram.y.
1998-09-13 04:20:16 +00:00
Thomas G. Lockhart
f16f35a0f8
Support SQL92-ish DECLARE and FETCH commands.
...
Adds a few new keywords, but all are allowed as column names etc.
1998-09-13 04:19:33 +00:00
Vadim B. Mikheev
9a2949e5dd
Fix using GroupBy/non-GroupBy expressions in HAVING.
1998-09-09 03:48:17 +00:00
Thomas G. Lockhart
b806b3d3f8
Allow insert statements to have every column
...
supplied by a DEFAULT clause. Enables INSERT INTO TABLE DEFAULT VALUES...
1998-09-03 14:21:06 +00:00
Thomas G. Lockhart
dfab686ce8
Update to match newest gram.c since both are generated from gram.y.
...
Should be done every time gram.c is refreshed.
1998-09-03 12:26:20 +00:00
Bruce Momjian
58fdae0ddf
Fix for indexing problems.
1998-09-02 23:05:37 +00:00
Thomas G. Lockhart
557d295b84
Update to support the CREATE TABLE DEFAULT VALUES statement in gram.y.
1998-09-02 15:48:28 +00:00
Thomas G. Lockhart
80c3241da7
Support CREATE TABLE DEFAULT VALUES statement.
1998-09-02 15:47:30 +00:00