Home > Archive > Slony1 PostgreSQL Replication > June 2005 > execute script error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author execute script error
Jacob Smullyan

2005-06-22, 11:24 am

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general

Christopher Browne

2005-06-22, 1:25 pm

Jacob Smullyan wrote:

>Hi --
>
>I'm getting an error attempting to apply some DDL with execute script.
>(Jan, Christopher -- this is the error I promised to post Monday.)
>
>Because the error message, ddl file, and schema are lengthy, I've
>posted them at this url:
>
> http://www.smullyan.org/smulloni/executescript.tar.gz
>
>In short, I drop a view, alter a table by adding a column, and then
>try to recreate the view using the column; the error message says that
>the new column does not exist.
>
>The ddl works fine at psql.
>
>The tarfile contains an empty schema, ddl for the change, the script I
>ran that invoked execute script, and the error message that resulted.
>
>

Nothing leaps out to me from the script, but as you say, it's pretty
lengthy, so there's "a lot of there" there (to say it in the Clintonian
way :-)).

What I'd suggest first is that you seek to solve the "because the error
message, ddl file, and schema are lengthy" problem.

Try doing it in pieces; I'd try doing everything up to (but not
including) the alteration to segmentversions.

That means needing to lock the set multiple times, which is pretty evil,
but hopefully it does two things:

1. It should get you to the point where *some* of the changes are
getting through, and

2. It should allow narrowing the possible sources of the problem.
Jacob Smullyan

2005-06-22, 8:25 pm

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general

Jacob Smullyan

2005-06-23, 3:24 am

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general

Jacob Smullyan

2005-06-28, 11:24 am

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com