[HACKERS] contrib modules and relkind check - Mailing list pgsql-hackers

From Amit Langote
Subject [HACKERS] contrib modules and relkind check
Date
Msg-id ab91fd9d-4751-ee77-c87b-4dd704c1e59c@lab.ntt.co.jp
Whole thread Raw
Responses Re: [HACKERS] contrib modules and relkind check  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Some contrib functions fail to fail sooner when relations of unsupported
relkinds are passed, resulting in error message like one below:

create table foo (a int);
create view foov as select * from foo;
select pg_visibility('foov', 0);
ERROR:  could not open file "base/13123/16488": No such file or directory

Attached patch fixes that for all such functions I could find in contrib.

It also installs RELKIND_PARTITIONED_TABLE as unsupported in a couple of
places (in pageinspect and pgstattuple).

Thanks,
Amit

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: [HACKERS] New SQL counter statistics view (pg_stat_sql)
Next
From: Amit Kapila
Date:
Subject: Re: [HACKERS] parallelize queries containing subplans