"Merlin Moncure" <[EMAIL PROTECTED]> writes:
> I suspect the savepoint command is almost never used
> outside of oracle compatibility efforts.

Last I heard, we implemented it because it is in the SQL standard.
I have no idea (nor do I much care) whether it's oracle-compatible.

> BEGIN;
> SAVEPOINT X;
> COMMIT ON ERRORS SELECT FOO();

> --or--

> BEGIN;
> SAVEPOINT x;
> SAVEPOINT y ON ERRORS SELECT FOO; -- (or ROLLBACK TO SAVEPOINT x);
> COMMIT;

> comments? fast track to todo list? :-)

Not exactly.  You haven't even made clear what you think that means,
let alone how it would be implemented.  What context is foo() supposed
to be executed in?  What happens if it fails?

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to