1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add a regression test for pgstattuple.

This is mainly to prove that the NaN fix actually works cross-platform.
This commit is contained in:
Tom Lane
2011-08-25 00:06:16 -04:00
parent af7d181298
commit bd165757f4
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,17 @@
CREATE EXTENSION pgstattuple;
--
-- It's difficult to come up with platform-independent test cases for
-- the pgstattuple functions, but the results for empty tables and
-- indexes should be that.
--
create table test (a int primary key);
select * from pgstattuple('test'::text);
select * from pgstattuple('test'::regclass);
select * from pgstatindex('test_pkey');
select pg_relpages('test');
select pg_relpages('test_pkey');