Re: pgrowlocks relkind check

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgrowlocks relkind check
Date: 2017-06-22 03:26:06
Message-ID: a84f4fc1-ce8e-a538-445e-2ec8aa584bef@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/14/17 01:34, Amit Langote wrote:
> How about the attached patch that teaches pgrowlocks() to error out unless
> a meaningful result can be returned? With the patch, it will issue a "%s
> is not a table" message if it is not a RELKIND_RELATION, except a
> different message will be issued for partitioned tables (for they are
> tables).

committed

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-06-22 03:40:47 Re: outfuncs.c utility statement support
Previous Message Michael Paquier 2017-06-22 03:05:19 Re: pg_terminate_backend can terminate background workers and autovacuum launchers