mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Remove pg_class.relhaspkey
It is not used for anything internally, and it cannot be relied on for external uses, so it can just be removed. To correct recommended way to check for a primary key is in pg_index. Discussion: https://www.postgresql.org/message-id/flat/b1a24c6c-6913-f89c-674e-0704f0ed69db@2ndquadrant.com
This commit is contained in:
@ -618,7 +618,6 @@ DefineQueryRewrite(const char *rulename,
|
||||
classForm->relhasindex = false;
|
||||
classForm->relkind = RELKIND_VIEW;
|
||||
classForm->relhasoids = false;
|
||||
classForm->relhaspkey = false;
|
||||
classForm->relfrozenxid = InvalidTransactionId;
|
||||
classForm->relminmxid = InvalidMultiXactId;
|
||||
classForm->relreplident = REPLICA_IDENTITY_NOTHING;
|
||||
|
Reference in New Issue
Block a user