Ticket #158 (closed defect: fixed)

Opened 1 year ago

Last modified 2 hours 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

12/03/08 10:43:32 changed by areski

  • status changed from new to closed.
  • resolution set to fixed.


Google