From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Remove pg_class.relhaspkey |
Date: | 2018-03-14 19:35:40 |
Message-ID: | E1ewCBY-0008TA-5I@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)2ndquadrant(dot)com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f66e8bf875f691db4c5d0173fc39b5a9c3ec969c
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 9 ---------
src/backend/catalog/heap.c | 1 -
src/backend/catalog/index.c | 32 ++-----------------------------
src/backend/commands/vacuum.c | 10 ----------
src/backend/rewrite/rewriteDefine.c | 1 -
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_class.h | 38 ++++++++++++++++++-------------------
7 files changed, 21 insertions(+), 72 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2018-03-14 20:43:51 | pgsql: Fix compiler warning |
Previous Message | Tom Lane | 2018-03-14 18:28:57 | Re: pgsql: Support INOUT arguments in procedures |