mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
bd165757f4
This is mainly to prove that the NaN fix actually works cross-platform.
18 lines
431 B
SQL
18 lines
431 B
SQL
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');
|