Ticket #158 (new defect)

Opened 1 year ago

Last modified 1 year ago

Postgres: stop scripts on first error

Reported by: xrg Assigned to: areski
Priority: minor Milestone:
Component: Database Version:
Keywords: error,block Cc:

Description

One interesting feature I just read about: \set ON_ERROR_STOP

You can include this at the top of your script/file, psql will stop right after the first error and will not try to continue any other commands in the chain.

http://andreas.scherbaum.la/blog/archives/251-stop-psql-on-first-error.html

I guess we should use that to avoid b0rken installations

Change History

10/22/07 13:30:55 changed by areski

good idea :) Can u include a patch or commit directly?

Thx, Areski



Google