-
- Downloads
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.
Showing
- contrib/pgstattuple/Makefile 1 addition, 1 deletioncontrib/pgstattuple/Makefile
- contrib/pgstattuple/expected/pgstattuple.out 84 additions, 0 deletionscontrib/pgstattuple/expected/pgstattuple.out
- contrib/pgstattuple/pgstatindex.c 66 additions, 6 deletionscontrib/pgstattuple/pgstatindex.c
- contrib/pgstattuple/pgstattuple--1.1--1.2.sql 39 additions, 0 deletionscontrib/pgstattuple/pgstattuple--1.1--1.2.sql
- contrib/pgstattuple/pgstattuple--1.2.sql 35 additions, 14 deletionscontrib/pgstattuple/pgstattuple--1.2.sql
- contrib/pgstattuple/pgstattuple.control 1 addition, 1 deletioncontrib/pgstattuple/pgstattuple.control
- contrib/pgstattuple/sql/pgstattuple.sql 14 additions, 0 deletionscontrib/pgstattuple/sql/pgstattuple.sql
- doc/src/sgml/pgstattuple.sgml 40 additions, 7 deletionsdoc/src/sgml/pgstattuple.sgml
Loading
Please register or sign in to comment