pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Richard Rowell <richard@bowmansystems.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Database Upgrade scripts (AKA Conditional SQL execution)
Date: Mon, 07 Jul 2003 08:20:05 -0700
Message-ID: <3F098FA5.4000808@joeconway.com> (raw)
In-Reply-To: <1057586322.31898.18.camel@localhost>
References: <1057586322.31898.18.camel@localhost>

Richard Rowell wrote:
> Can I accomplish this with postgresql without involving an external
> process (like say perl)?  I guess I could put the upgrade stuff into
> PL/SQL functions and just drop the functions when I'm done, but I was
> hoping for something a little "cleaner".
> 

There is no way (currently at least) to do this without some kind of 
function. I've done it in the past with PL/pgSQL. We've had brief 
discussions in the past about how this could be supported, but nothing 
conclusive, and no one has cared enough to scratch this particular itch.

Joe




view thread (2+ messages)

Message-ID: <3F098FA5.4000808@joeconway.com>
Permalink:  ../3F098FA5.4000808@joeconway.com/
Also on:    postgresql.org/message-id/3F098FA5.4000808@joeconway.com

 · 

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-sql@postgresql.org
  Cc: mail@joeconway.com, richard@bowmansystems.com
  Subject: Re: Database Upgrade scripts (AKA Conditional SQL execution)
  In-Reply-To: <3F098FA5.4000808@joeconway.com>

* 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