contrib modules and relkind check

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: contrib modules and relkind check
Date: 2017-01-24 05:14:08
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 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).


Attachment Content-Type Size
0001-Add-relkind-checks-to-certain-contrib-modules.patch text/x-diff 6.9 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-01-24 05:29:20 Re: parallelize queries containing subplans
Previous Message Dilip Kumar 2017-01-24 04:59:32 Re: New SQL counter statistics view (pg_stat_sql)