public inbox for [email protected]  
help / color / mirror / Atom feed
Re: Transaction issue
5+ messages / 2 participants
[nested] [flat]

* Re: Transaction issue
@ 2024-06-19 18:36  Rich Shepard <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Rich Shepard @ 2024-06-19 18:36 UTC (permalink / raw)
  To: pgsql-general

On Wed, 19 Jun 2024, Adrian Klaver wrote:

> Is this being done in a script fed to psql?

Adrian,

Yes. At the psql prompt I use the \i <filename> command to run the script.

Rich







^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Transaction issue
@ 2024-06-19 18:40  Adrian Klaver <[email protected]>
  parent: Rich Shepard <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Adrian Klaver @ 2024-06-19 18:40 UTC (permalink / raw)
  To: Rich Shepard <[email protected]>; pgsql-general



On 6/19/24 11:36 AM, Rich Shepard wrote:
> On Wed, 19 Jun 2024, Adrian Klaver wrote:
> 
>> Is this being done in a script fed to psql?
> 
> Adrian,
> 
> Yes. At the psql prompt I use the \i <filename> command to run the script.

Are there transaction statements e.g. BEGIN;, COMMIT; in the script?

> 
> Rich
> 
> 
> 

-- 
Adrian Klaver
[email protected]






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Transaction issue
@ 2024-06-19 19:40  Rich Shepard <[email protected]>
  parent: Adrian Klaver <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Rich Shepard @ 2024-06-19 19:40 UTC (permalink / raw)
  To: pgsql-general

On Wed, 19 Jun 2024, Adrian Klaver wrote:

> Are there transaction statements e.g. BEGIN;, COMMIT; in the script?

Adrian,

Yes, each script has BEGIN; on line 1.

Rich






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Transaction issue
@ 2024-06-19 20:10  Adrian Klaver <[email protected]>
  parent: Rich Shepard <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Adrian Klaver @ 2024-06-19 20:10 UTC (permalink / raw)
  To: Rich Shepard <[email protected]>; pgsql-general

On 6/19/24 12:40, Rich Shepard wrote:
> On Wed, 19 Jun 2024, Adrian Klaver wrote:
> 
>> Are there transaction statements e.g. BEGIN;, COMMIT; in the script?
> 
> Adrian,
> 
> Yes, each script has BEGIN; on line 1.

Does it have a COMMIT; at the end?

At this point I think you need to create a simple test case where:

1) You have script with
BEGIN;
<A line that contains the syntax error>
COMMIT;

2) In psql do \i <the_script>

3) Do what you did before.

Shows us the content of the steps in your reply.

> 
> Rich
> 
> 

-- 
Adrian Klaver
[email protected]







^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Transaction issue
@ 2024-06-19 20:13  Rich Shepard <[email protected]>
  parent: Adrian Klaver <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Rich Shepard @ 2024-06-19 20:13 UTC (permalink / raw)
  To: pgsql-general

On Wed, 19 Jun 2024, Adrian Klaver wrote:

> Does it have a COMMIT; at the end?

Adrian,

No. I won't commit until I see the results are as intended.

> At this point I think you need to create a simple test case where:

I killed the psql process and restarted it to allow me to work on other
issues right now; will run a test when I again get that error.

Thanks,

Rich






^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2024-06-19 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-06-19 18:36 Re: Transaction issue Rich Shepard <[email protected]>
2024-06-19 18:40 ` Adrian Klaver <[email protected]>
2024-06-19 19:40   ` Rich Shepard <[email protected]>
2024-06-19 20:10     ` Adrian Klaver <[email protected]>
2024-06-19 20:13       ` Rich Shepard <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox