From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
---|---|
To: | jm(dot)poure(at)freesurf(dot)fr |
Cc: | Andrew Sullivan <andrew(at)libertyrms(dot)info>, PostgreSQL general list <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Feature enhancement request : use of libgda |
Date: | 2002-02-11 19:35:57 |
Message-ID: | 200202111935.g1BJZvX11103@saturn.janwieck.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Jean-Michel POURE wrote:
>
> CREATE OR REPLACE VIEW / TRIGGER and ALTER TABLE DROP COLUMN are real
> priorities for us at pgAdmin team (http://pgadmin.postgresql.org) I don't
> know PostgreSQL internals, but it should take a few days/weeks to an
> experienced hacker to add these features.
Jean-Michel,
I think you underestimate the problem a little.
Doing CREATE OR REPLACE is not that trivial as you appear to
think. The existing PL handlers (for PL/Tcl and PL/pgSQL at
least) identify functions by their pg_proc OID. The
functions body text is parsed only on the first call to that
function during the entire session. So changing the functions
prosrc attribute after having called it already wouldn't take
effect until the next "session". But changing the OID as well
corrupts existing SPI plans in other functions plus rules.
Now it might be possible to tell your function handler to
recompile that function at the next call without changing the
OID, but how do you tell the function handlers in all the
other concurrently running backends to do so after finishing
their current transaction?
The reason for this feature not beeing implemented yet is not
"that just noone is in the mood for". It is that the general
multiuser support structures aren't in place and a little
local sandbox-hack just wouldn't cut it.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Liam DeMasi | 2002-02-11 19:45:43 | having trouble with PostgreSQL 7.1.3 |
Previous Message | Bruce Momjian | 2002-02-11 18:50:05 | Re: getting currval from a sequence |
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2002-02-11 19:48:17 | Re: PostgreSQL 7.2 on Cygwin |
Previous Message | Tom Lane | 2002-02-11 19:04:43 | Re: bug with select for update |