Fix pgstattuple functions to use regclass-type as the argument.
authorFujii Masao <fujii@postgresql.org>
Thu, 18 Jul 2013 18:50:20 +0000 (03:50 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 18 Jul 2013 18:50:20 +0000 (03:50 +0900)
commit1dc118660b8f12d3bdec94b6f6e1068966ca62e9
tree31e7020fa5e551a9021adeea575d626f0bc4ae70
parentd26888bc4d1e539a82f21382b0000fe5bbf889d9
Fix pgstattuple functions to use regclass-type as the argument.

This allows us to specify the target relation with several expressions,
'relname', 'schemaname.relname' and OID in all pgstattuple functions.
pgstatindex() and pg_relpages() could not accept OID as the argument
so far.

Per discussion on -hackers, we decided to keep two types of interfaces,
with regclass-type and TEXT-type argument, for each pgstattuple
function because of the backward-compatibility issue. The functions
which have TEXT-type argument will be deprecated in the future release.

Patch by Satoshi Nagayasu, reviewed by Rushabh Lathia and Fujii Masao.
contrib/pgstattuple/Makefile
contrib/pgstattuple/expected/pgstattuple.out
contrib/pgstattuple/pgstatindex.c
contrib/pgstattuple/pgstattuple--1.1--1.2.sql [new file with mode: 0644]
contrib/pgstattuple/pgstattuple--1.2.sql [moved from contrib/pgstattuple/pgstattuple--1.1.sql with 75% similarity]
contrib/pgstattuple/pgstattuple.control
contrib/pgstattuple/sql/pgstattuple.sql
doc/src/sgml/pgstattuple.sgml