Psql doesn't allow multiple action rules

From: jwieck(at)debis(dot)com (Jan Wieck)
To: pgsql-hackers(at)postgreSQL(dot)org (PostgreSQL HACKERS)
Subject: Psql doesn't allow multiple action rules
Date: 1998-08-15 18:17:07
Message-ID: m0z7kt2-000EBPC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)debis(dot)com (Jan Wieck) #

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-08-15 18:18:30 Regression test status (was type coersion)
Previous Message Tom Lane 1998-08-15 17:59:46 Re: [HACKERS] int8 type -- call for porting results!