- Would index lookup be noticeably faster with char vs varchar when all values are 36 chars
- Convert hex in text representation to decimal numberConvert hex in text representation to decimal number
- How does PostgreSQL enforce the UNIQUE constraint / what type of index does it use?How does PostgreSQL enforce the UNIQUE constraint / what type of index does it use?
either implement fully normalized n:m relationships that also provide referential integrity. Uniqueness of each set of references is harder to establish, you could use a
MATERIALIZE VIEW
(MV) with aggregated arrays as stepping stone.How to implement a many-to-many relationship in PostgreSQL?How to implement a many-to-many relationship in PostgreSQL?
or operate with sorted arrays of FK references (which cannot yet be supported with FK constraints). Tools from the additional module intarray may come in handy:
Compare arrays for equality, ignoring order of elementsCompare arrays for equality, ignoring order of elements