Tom Lane
dd979f66be
Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now
...
SELECT DISTINCT ON (expr [, expr ...]) targetlist ...
and there is a check to make sure that the user didn't specify an ORDER BY
that's incompatible with the DISTINCT operation.
Reimplement nodeUnique and nodeGroup to use the proper datatype-specific
equality function for each column being compared --- they used to do
bitwise comparisons or convert the data to text strings and strcmp().
(To add insult to injury, they'd look up the conversion functions once
for each tuple...) Parse/plan representation of DISTINCT is now a list
of SortClause nodes.
initdb forced by querytree change...
2000-01-27 18:11:50 +00:00
Bruce Momjian
5c25d60244
Add:
...
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
to all files copyright Regents of Berkeley. Man, that's a lot of files.
2000-01-26 05:58:53 +00:00
Bruce Momjian
86ef36c907
New NameStr macro to convert Name to Str. No need for var.data anymore.
...
Fewer calls to nameout.
Better use of RelationGetRelationName.
1999-11-07 23:08:36 +00:00
Bruce Momjian
3406901a29
Move some system includes into c.h, and remove duplicates.
1999-07-17 20:18:55 +00:00
Bruce Momjian
a71802e12e
Final cleanup.
1999-07-16 05:00:38 +00:00
Bruce Momjian
9b645d481c
Update #include cleanups
1999-07-16 03:14:30 +00:00
Bruce Momjian
2e6b1e63a3
Remove unused #includes in *.c files.
1999-07-15 22:40:16 +00:00
Bruce Momjian
6724a50787
Change my-function-name-- to my_function_name, and optimizer renames.
1999-02-13 23:22:53 +00:00
Tom Lane
d03e98737c
Replace typtoout() and gettypelem() with a single routine,
...
so that fetching an attribute value needs only one SearchSysCacheTuple call
instead of two redundant searches. This speeds up a large SELECT by about
ten percent, and probably will help GROUP BY and SELECT DISTINCT too.
1999-01-24 05:40:49 +00:00
Vadim B. Mikheev
6beba218d7
New HeapTuple structure/interface.
1998-11-27 19:52:36 +00:00
Bruce Momjian
a32450a585
pgindent run before 6.3 release, with Thomas' requested changes.
1998-02-26 04:46:47 +00:00
Vadim B. Mikheev
f0e7e2faa4
ExecReScan for Unique & Sort nodes.
1998-02-23 06:28:16 +00:00
Vadim B. Mikheev
b1b246ab40
New nodeGroup.c code uses own copy of first tuple in a group.
...
Free memory after comparison in nodeUnique.c
1998-02-18 12:40:44 +00:00
Bruce Momjian
0386a50f31
Pass around typmod as int16.
1998-02-10 16:04:38 +00:00
Bruce Momjian
2c482cdbf2
Pass attypmod through to executor by adding to Var and Resdom.
1998-02-10 04:02:59 +00:00
Bruce Momjian
726c3854cb
Inline fastgetattr and others so data access does not use function
...
calls.
1998-01-31 04:39:26 +00:00
Bruce Momjian
1ea01720d5
heapattr functions now return a Datum, not char *.
1997-09-12 04:09:08 +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
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
1ccd423235
Massive commit to run PGINDENT on all *.c and *.h files.
1997-09-07 05:04:48 +00:00
Bruce Momjian
75c6c2b608
Inlined heap_getattr().
1997-08-26 23:31:58 +00:00
Bruce Momjian
a5dd06f763
include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix
1997-01-10 20:19:49 +00:00
Bruce Momjian
c9c0e111b8
More compile cleanups
1996-11-08 20:46:33 +00:00
Bruce Momjian
4b2b8592a0
Compile and warning cleanup
1996-11-08 06:02:30 +00:00
Marc G. Fournier
3df33180a1
add #include "postgres.h", as required by all .c files
1996-10-31 10:12:26 +00:00
Marc G. Fournier
6562fa851e
Fixes:
...
'select distinct on' causes backend to crash
submitted by: Chris Dunlop chris@onthe.net.au
1996-07-19 06:27:59 +00:00
Marc G. Fournier
d31084e9d1
Postgres95 1.01 Distribution - Virgin Sources
1996-07-09 06:22:35 +00:00