Dale Seaburg <kg5lt(at)verizon(dot)net> writes:
> Is there a way to make a conditional ALTER TABLE command?
Nope, no such feature. Consider writing a plpgsql function that
contains whatever logic you need.
> As an alternative, how best to tell SQL (Query tool) to continue
> processing a script even if an "error" (like no column exists) is
psql will do that happily enough.
regards, tom lane
In response to
pgsql-novice by date
|Next:||From: Just E. Mail||Date: 2009-05-26 23:10:51|
|Subject: Re: Read data from text file|
|Previous:||From: Dale Seaburg||Date: 2009-05-26 22:59:06|
|Subject: Conditional ALTER TABLE|