pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Zakkr <zakkr@zf.jcu.cz>
Cc: pgsql-interfaces <pgsql-interfaces@postgreSQL.org>
Subject: RE: [INTERFACES] SPI_exec vs. CREATE/DROP RULE
Date: Fri, 23 Jul 1999 12:05:49 +0900
Message-ID: <000601bed4b8$44575e40$2801007e@cadzone.tpf.co.jp> (raw)
In-Reply-To: <11160.932691245@sss.pgh.pa.us>



> -----Original Message-----
> From: owner-pgsql-interfaces@postgreSQL.org
> [mailto:owner-pgsql-interfaces@postgreSQL.org]On Behalf Of Tom Lane
> Sent: Friday, July 23, 1999 9:54 AM
> To: Zakkr
> Cc: pgsql-interfaces
> Subject: Re: [INTERFACES] SPI_exec vs. CREATE/DROP RULE 
> 
> 
> Zakkr <zakkr@zf.jcu.cz> writes:
> > I try in my function use SPI_exec() with CREATE or DROP RULE, 
> but if I call
> > my func. - server return this message: 
> > "Backend send D message without prior T". 
> 
> That's a known bug with utility statements executed via SPI.  Someone
> was looking into a fix a few months ago, but I haven't heard anything
> about it since then...
> 

Sorry,I missed the change of "CREATE RULE". 
Here is a patch.

Hiroshi Inoue
Inoue@tpf.co.jp

inline patch 1: backend/rewrite/rewriteDefine.c (+1/-1 lines) download inline-1.patch*** backend/rewrite/rewriteDefine.c.orig Wed May 26 16:04:41 1999 --- backend/rewrite/rewriteDefine.c Fri Jul 23 11:22:09 1999 *************** *** 131,137 **** rulname, evtype, eventrel_oid, evslot_index, actionbuf, qualbuf, is_instead); ! pg_exec_query_acl_override(rulebuf); return LastOidProcessed; } --- 131,137 ---- rulname, evtype, eventrel_oid, evslot_index, actionbuf, qualbuf, is_instead); ! pg_exec_query_dest(rulebuf, None, true); return LastOidProcessed; }

view thread (3+ messages)

Message-ID: <000601bed4b8$44575e40$2801007e@cadzone.tpf.co.jp>
Permalink:  ../000601bed4b8$44575e40$2801007e@cadzone.tpf.co.jp/
Also on:    postgresql.org/message-id/000601bed4b8$44575e40$2801007e@cadzone.tpf.co.jp

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: Inoue@tpf.co.jp, tgl@sss.pgh.pa.us, zakkr@zf.jcu.cz
  Subject: RE: [INTERFACES] SPI_exec vs. CREATE/DROP RULE
  In-Reply-To: <000601bed4b8$44575e40$2801007e@cadzone.tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox