From: Tom Lane <tgl@sss.pgh.pa.us>
To: Raivo Rebane <raivore55@gmail.com>
Cc: Christoph Moench-Tegeder <cmt@burggraben.net>
Cc: pgsql-general@postgresql.org
Subject: Re: Binary large object processing problems
Date: Mon, 13 Mar 2023 12:18:27 -0400
Message-ID: <1885980.1678724307@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMH5fpvvmFzJvV=QZBB2Ny4zKyNUzj2POswsbXpw+_o7-ecupQ@mail.gmail.com>
References: <CAMH5fpuFqT85EfafcLgsctJa3fourWEQbcNmh0d+Ew0C+gEXZg@mail.gmail.com>
<ZA9AsKqz32AABN+B@squirrel.exwg.net>
<CAMH5fpvvmFzJvV=QZBB2Ny4zKyNUzj2POswsbXpw+_o7-ecupQ@mail.gmail.com>
Raivo Rebane <raivore55@gmail.com> writes:
> Thank for answer, but I was also readed this manual and found there :
> 35.3.2. Importing a Large Object
You need to read the start of that section, which says
All large object manipulation using these functions
<emphasis>must</emphasis> take place within an SQL transaction block,
As Christoph said, you're responsible for supplying a BEGIN and COMMIT
around the call.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, raivore55@gmail.com, cmt@burggraben.net
Subject: Re: Binary large object processing problems
In-Reply-To: <1885980.1678724307@sss.pgh.pa.us>
References: <CAMH5fpuFqT85EfafcLgsctJa3fourWEQbcNmh0d+Ew0C+gEXZg@mail.gmail.com> <ZA9AsKqz32AABN+B@squirrel.exwg.net> <CAMH5fpvvmFzJvV=QZBB2Ny4zKyNUzj2POswsbXpw+_o7-ecupQ@mail.gmail.com> <1885980.1678724307@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox