Re: lo_import() of an empty file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: lo_import() of an empty file
Date: 2018-03-30 18:22:49
Message-ID: 13129.1522434169@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I have just discovered if you try to lo_import() an empty file, and oid
> is returned, but nothing is added to pg_largeobject:

Why would you expect there to be? There's no data to store.

There should be an entry in pg_largeobject_metadata, though.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2018-03-30 18:24:23 Re: [HACKERS] AdvanceXLInsertBuffer vs. WAL segment compressibility
Previous Message Nikhil Sontakke 2018-03-30 18:19:43 Re: [HACKERS] logical decoding of two-phase transactions