forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf23a563
committed
Add an in-core GiST index opclass for inet/cidr types.
This operator class can accelerate subnet/supernet tests as well asbtree-equivalent ordered comparisons. It also handles a new networkoperator inet && inet (overlaps, a/k/a "is supernet or subnet of"),which is expected to be useful in exclusion constraints.Ideally this opclass would be the default for GiST with inet/cidr data,but we can't mark it that way until we figure out how to do a more orless graceful transition from the current situation, in which thereally-completely-bogus inet/cidr opclasses in contrib/btree_gist aremarked as default. Having the opclass in core and not default is betterthan not having it at all, though.While at it, add new documentation sections to allow us to officiallydocument GiST/GIN/SP-GiST opclasses, something there was never a clearplace to do before. I filled these in with some simple tables listingthe existing opclasses and the operators they support, but there'scertainly scope to put more information there.Emre Hasegeli, reviewed by Andreas Karlsson, further hacking by me1 parent02f6561 commitf23a563
File tree
21 files changed
+1839
-89
lines changed- doc/src/sgml
- src
- backend/utils/adt
- include
- catalog
- utils
- test/regress
- expected
- sql
21 files changed
+1839
-89
lines changedLines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8434 | 8434 |
| |
8435 | 8435 |
| |
8436 | 8436 |
| |
8437 |
| - | |
8438 |
| - | |
| 8437 | + | |
| 8438 | + | |
| 8439 | + | |
8439 | 8440 |
| |
8440 | 8441 |
| |
8441 | 8442 |
| |
| |||
8484 | 8485 |
| |
8485 | 8486 |
| |
8486 | 8487 |
| |
8487 |
| - | |
| 8488 | + | |
8488 | 8489 |
| |
8489 | 8490 |
| |
8490 | 8491 |
| |
8491 | 8492 |
| |
8492 |
| - | |
| 8493 | + | |
8493 | 8494 |
| |
8494 | 8495 |
| |
8495 | 8496 |
| |
| |||
8502 | 8503 |
| |
8503 | 8504 |
| |
8504 | 8505 |
| |
| 8506 | + | |
| 8507 | + | |
| 8508 | + | |
| 8509 | + | |
| 8510 | + | |
8505 | 8511 |
| |
8506 | 8512 |
| |
8507 | 8513 |
| |
|
0 commit comments
Comments
(0)