Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 45252

For questions about extending a base object's features into a derived object.

4 votes
Accepted

Partial unique constraint spanning multiple tables in postgres

Postgres directly supports table inheritance, which does the trick: CREATE TABLE base_possession ( possession_id SERIAL PRIMARY KEY ); CREATE TABLE possession ( possession_id INTEGER NOT NULL REFERENCES …
lpd's user avatar
  • 251
3 votes

Partial unique constraint spanning multiple tables in postgres

Not an answer for postgres, but may be useful nevertheless to someone using Oracle who stumbles across this: Oracle allows partial uniqueness to be enforced across multiple tables using a fast refresh …
lpd's user avatar
  • 251