Re: Get RULE condition and commands

From: Vlad Arkhipov <arhipov(at)dc(dot)baikal(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Get RULE condition and commands
Date: 2012-06-18 10:09:57
Message-ID: 4FDEFE75.80106@dc.baikal.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/16/2012 02:20 AM, Tom Lane wrote:
> Vlad Arkhipov<arhipov(at)dc(dot)baikal(dot)ru> writes:
>> What is the proper way of getting RULE condition and commands?
> pg_get_ruledef()
>
> regards, tom lane
>
It prints the whole CREATE RULE command. Is there any way to extract
WHERE condition of the rule?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2012-06-18 13:20:29 Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION
Previous Message Léa Massiot 2012-06-18 10:03:08 Re: Starting a cluster as a service