Re: Predictable order of SQL commands in pg_dump - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Predictable order of SQL commands in pg_dump
Date
Msg-id 8211.1222027042@sss.pgh.pa.us
Whole thread Raw
In response to Re: Predictable order of SQL commands in pg_dump  ("Dmitry Koterov" <dmitry@koterov.ru>)
Responses Re: Predictable order of SQL commands in pg_dump  ("Dmitry Koterov" <dmitry@koterov.ru>)
List pgsql-hackers
"Dmitry Koterov" <dmitry@koterov.ru> writes:
>  CREATE TRIGGER t000_set_id
> -    BEFORE INSERT OR DELETE OR UPDATE ON a
> +    BEFORE INSERT OR DELETE OR UPDATE ON b
>      FOR EACH ROW
>      EXECUTE PROCEDURE i_trg();

>  CREATE TRIGGER t000_set_id
> -    BEFORE INSERT OR DELETE OR UPDATE ON b
> +    BEFORE INSERT OR DELETE OR UPDATE ON a
>      FOR EACH ROW
>      EXECUTE PROCEDURE i_trg();

> You see, object names are the same, but ordering is mixed.

Yeah, because the sort is just on object name.

For objects of the same type I suppose we could take a look at their
owning object's name too ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Dmitry Koterov"
Date:
Subject: Re: Foreign key constraint for array-field?
Next
From: "Alex Hunsaker"
Date:
Subject: Re: Proposal: move column defaults into pg_attribute along with attacl