Re: Transaction issue

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transaction issue
Date: 2024-06-19 21:44:30
Message-ID: CANzqJaAWLCZt0uWBSUWUDtgAsgFnuKjbDRSQgguWQQN55O=DWw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 19, 2024 at 5:39 PM Rich Shepard <rshepard(at)appl-ecosys(dot)com>
wrote:

> On Wed, 19 Jun 2024, Ron Johnson wrote:
>
> > The problem is that you don't know where it's failing.
>
> Ron,
>
> True that. There's no specificity to why the transaction didn't complete.
>
> > I suggest you run "\echo all" before running "\i
> > insert-law-offices-addr.sql". That way, you'll see which line it barfs
> on.
>
> Good point. I'll do that. In the meantime, commenting out (or removing) the
> BEGIN; command inserts all rows without error.
>
>
In addition, manually run the "BEGIN;" before the "\i insert-blarge.sql"
command.

That way, insert-blarge.sql just inserts. My reasoning: since you control
the ROLLBACK, you should also control the BEGIN.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-06-19 21:48:18 Re: Transaction issue
Previous Message Rich Shepard 2024-06-19 21:39:02 Re: Transaction issue