Re: [HACKERS] bugzilla.pgaccess.org

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Iavor Raytchev <iavor(dot)raytchev(at)verysmall(dot)org>, Hannu Krosing <hannu(at)tm(dot)ee>, PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [HACKERS] bugzilla.pgaccess.org
Date: 2002-07-12 02:46:47
Message-ID: 3D2E4317.B9827615@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Christopher Kings-Lynne wrote:
>
> > The Bugzilla project plans to support PostgreSQL in one of their future
> > releases, but this requires functionality in PostgreSQL, that is not
> > even scheduled for 7.3. So the availability of a supported PostgreSQL
> > port of Bugzilla is unpredictable at this time.
>
> I think he said that they needed DROP COLUMN functionality, which is being
> worked on for 7.3. (Although I haven't had time to work on it for a few
> days)

DROP COLUMN is the one we might solve in 7.3. ALTER COLUMN ...
TYPE was mentioned too and I don't know when or how we will have
that one.

REPLACE INTO is one more. Though you can work around it. If you
setup a BEFORE INSERT trigger, in which you do a table lock, then
try to UPDATE an existing row with NEW's key. If that succeeds,
you return NULL, suppressing the INSERT. If it fails, you return
NEW letting the INSERT happen. The table lock (what Bradley
called "heavy locking") is required because otherwise someone can
sneak in between your update attempt and letting the INSERT
happen, getting exactly the same result and ... boom, duplicate
key error.

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 #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-07-12 02:50:13 Re: [HACKERS] bugzilla.pgaccess.org
Previous Message Christopher Kings-Lynne 2002-07-12 01:35:43 Re: [HACKERS] bugzilla.pgaccess.org

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2002-07-12 02:50:13 Re: [HACKERS] bugzilla.pgaccess.org
Previous Message Christopher Kings-Lynne 2002-07-12 01:35:43 Re: [HACKERS] bugzilla.pgaccess.org