Psql doesn't allow multiple action rules - Mailing list pgsql-hackers

From jwieck@debis.com (Jan Wieck)
Subject Psql doesn't allow multiple action rules
Date
Msg-id m0z7kt2-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
Responses Re: [HACKERS] Psql doesn't allow multiple action rules
List pgsql-hackers
Hi,

    now  I'm  really  sure that at least only a few ppl might use
    the current rule system.

    Psql cannot send the queries for DEFINE  RULE  with  multiple
    actions  to  the  backend. For this feature, the single colon
    separated statements are enclosed in []'s. But  psql  doesn't
    handle  []'s  and sends down the query at the first occurence
    of a colon. And a colon cannot be escaped in  psql,  it  must
    occur in a literal string.

    The question is now, should we tell psql that []'s have to be
    treated like ()'s or should we change the  syntax  of  CREATE
    RULE in the backends parser from [] to ()?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck@debis.com (Jan Wieck) #

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: geo_ops.c is broken
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] int8 type -- call for porting results!