Re: Transaction issue

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Transaction issue
Дата
Msg-id 85742b59-6aa1-4527-84fd-a2de76665a9f@aklaver.com
обсуждение исходный текст
Ответ на Re: Transaction issue  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Transaction issue
Список pgsql-general
On 6/19/24 13:54, Rich Shepard wrote:
> On Wed, 19 Jun 2024, Adrian Klaver wrote:
> 
>> Looks to me you have a left over unresolved transaction in your psql 
>> session. The easiest solution if that is the case is to exit the 
>> session and start a new session to run the script.
> 
> Adrian, et al.:
> 
> That's what I've done. This time I commented out the BEGIN; line:
> bustrac=# \i insert-law-offices-addr.sql INSERT 0 66
> 
> There are no errors in the file but when I tried running it as a 
> transaction
> it failed.
> 
> I have not before used transactions when inserting or updating tables; I'm
> surprised that starting the transaction from the psql command line chokes
> the attempt.

I should have added to previous post:

What is the exact command string you are using to launch psql?

> 
> Regards,
> 
> Rich
> 
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Transaction issue
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Transaction issue