Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible
Date
Msg-id aYTWIlvwo4i3UCbP@nathan
Whole thread Raw
In response to Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Thu, Feb 05, 2026 at 11:36:00AM -0600, Nathan Bossart wrote:
> @@ -1046,7 +1046,7 @@ get_object_address(ObjectType objtype, Node *object,
>                  address.classId = LargeObjectRelationId;
>                  address.objectId = oidparse(object);
>                  address.objectSubId = 0;
> -                if (!LargeObjectExists(address.objectId))
> +                if (!LargeObjectExists(address.objectId) && !IsBinaryUpgrade)
>                  {
>                      if (!missing_ok)
>                          ereport(ERROR,

(Probably better to set missing_ok for only the specific commands we want
to bypass this check, but you get the idea...)

-- 
nathan



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible
Next
From: Andrey Borodin
Date:
Subject: Call for Posters: PGConf.dev 2026