A couple of marginal performance hacks for the information_schema views:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3f7626e9f2821ba084f3c31fddd9777ba7be6018
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-02-14T20:48:36Z
Releases: 8.4.0
A couple of marginal performance hacks for the information_schema views:
replace the old recursive-SQL-function implementation of _pg_keysequal()
with use of the built-in array containment operators, and change
table_constraints' UNION to UNION ALL.  Per discussion with Octavio Alvarez.

initdb not forced since this doesn't affect results, but you'd need to
initdb or reload the information_schema to see the new definitions.

Files

PathChange+/−
src/backend/catalog/information_schema.sql modified +4 −12