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
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
1998-09-01 03:29:17 +00:00
Bruce Momjian
a753e5d192
Fix for possible releasebuffer bug.
1998-08-30 23:25:56 +00:00
Bruce Momjian
2618fcdf0d
Fix scanner name length trimming.
1998-08-29 05:27:17 +00:00
Bruce Momjian
d15c37ca82
Truncate identifiers at NAMEDATALEN length.
1998-08-29 02:36:18 +00:00
Bruce Momjian
d394d06d7a
Fix atttypmod alignment again, and re-enable ecpg.
1998-08-26 16:43:54 +00:00
Bruce Momjian
093beb3560
Make attalign match type alignment.
1998-08-26 05:22:58 +00:00
Thomas G. Lockhart
651e31bb80
Fix up crashing symptoms for new serial type by making sure constraint
...
and index name fields are pstrdup'd (copied) rather than reused.
1998-08-26 04:20:27 +00:00
Bruce Momjian
a873da484f
Fix for select bug.
1998-08-26 03:17:32 +00:00
Marc G. Fournier
f62d1253ef
From: Massimo Dal Zotto <dz@cs.unitn.it>
...
> these patches define the UNLISTEN sql command. The code already
> existed but it was unknown to the parser. Now it can be used
> like the listen command.
> You must make clean and delete gram.c and parser.h before make.
1998-08-25 21:37:08 +00:00
Marc G. Fournier
8e9d69d6ac
From: Massimo Dal Zotto <dz@cs.unitn.it>
...
> sequence.patch
>
> adds the missing setval command to sequences. Owner of sequences
> can now set the last value to any value between min and max
> without recreating the sequence. This is useful after loading
> data from external files.
1998-08-25 21:25:46 +00:00
Thomas G. Lockhart
7ff198cd46
Support SERIAL column type. Expand column marked is_sequence into three
...
statements:
- the table definition with a default clause referencing the sequence;
- a CREATE SEQUENCE statement;
- a UNIQUE constraint, which expands into a CREATE INDEX statement.
This is not a perfect solution, since the sequence will remain even if
the table is dropped. Also, there is no absolute protection on updating
the sequence column.
1998-08-25 15:08:12 +00:00
Thomas G. Lockhart
12cf9f8075
Support SERIAL column type. Expand into an integer column but mark
...
is_sequence in the ColumnDef structure.
1998-08-25 15:04:24 +00:00
Bruce Momjian
6f36e9f7c9
Cleanup of target file.
1998-08-25 03:22:49 +00:00
Bruce Momjian
0fc13f582a
Make sure resdomno for update/insert match attribute number for
...
rewrite system. Restructure parse_target to make it easier to
understand.
1998-08-25 03:17:29 +00:00