- Notifications
You must be signed in to change notification settings - Fork28
Commitdd979f6
committed
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 BYthat's incompatible with the DISTINCT operation.Reimplement nodeUnique and nodeGroup to use the proper datatype-specificequality function for each column being compared --- they used to dobitwise comparisons or convert the data to text strings and strcmp().(To add insult to injury, they'd look up the conversion functions oncefor each tuple...) Parse/plan representation of DISTINCT is now a listof SortClause nodes.initdb forced by querytree change...1 parent3f0074e commitdd979f6
File tree
32 files changed
+607
-545
lines changed- doc/src/sgml/ref
- src
- backend
- executor
- nodes
- optimizer
- plan
- prep
- util
- parser
- rewrite
- include
- catalog
- executor
- nodes
- optimizer
- parser
- test/regress
- expected
- sql
32 files changed
+607
-545
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 206 | + | |
211 | 207 | | |
212 | 208 | | |
213 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
214 | 227 | | |
215 | 228 | | |
216 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
0 commit comments
Comments
(0)