pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general@postgresql.org
Subject: Re: permission denied for large object 200936761
Date: Mon, 1 Feb 2021 13:59:18 -0800
Message-ID: <61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com> (raw)
In-Reply-To: <a0efcaae-bc4b-7188-734e-d6a5161bb480@hot.ee>
References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee>
	<2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com>
	<08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee>
	<f4bf75cc-cb4a-9154-4189-2ae8e539ccf9@aklaver.com>
	<6e8bd48a-9c0b-e045-05ee-1cbe334b2bba@hot.ee>
	<0cf7c8fe-00fb-0998-d372-d5545234572f@aklaver.com>
	<eff2a916-379c-128c-0f62-e229fa4b8716@hot.ee>
	<45dc661e-f277-566b-4c47-97b2f8710975@aklaver.com>
	<b0c71270-e5dd-76d8-8488-3e5ba3ace4ef@hot.ee>
	<d1c9a330-0833-42e3-f85b-a0ccc3915394@aklaver.com>
	<a0efcaae-bc4b-7188-734e-d6a5161bb480@hot.ee>

On 2/1/21 1:28 PM, Andrus wrote:
> Hi!
> 
>  >Long term figure out what they are and if they are needed or not.
> 
> Non-superuser backup worked earlier. It looks like large objects 
> suddenly appeared in database:
> 
> select * from  pg_largeobject_metadata
> 
> Oid                      Lomowner
> 
> 200936761       30152
> 200936762      30152
> 200936767       30152
> 
> How to figure out what are large object with oids   200936761, 200936762 
> and 200936767 ?

I misspoke earlier about large objects not being tied to a schema.table. 
They can be as a column of type oid.

To see if they are try :

SELECT
     relname,
     attname
FROM
     pg_attribute AS pa
     JOIN pg_class AS pc ON pa.attrelid = pc.oid
WHERE
     atttypid = 'oid'::regtype
     AND relnamespace = 'public'::regnamespace
     AND attnum > 0;

Where relnamespace is the schema you are interested in.

> 
> Pd_dump throws error on first of them: 200936761
> 
> Andrus.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (27+ messages)  latest in thread

Message-ID: <61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com>
Permalink:  ../61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com/
Also on:    postgresql.org/message-id/61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, kobruleht2@hot.ee
  Subject: Re: permission denied for large object 200936761
  In-Reply-To: <61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com>
  References: <47c92baa-949b-92d1-c162-1f0d8348fb50@hot.ee> <2eee8862-ea29-3e9c-30ff-82ec7ad4d99f@aklaver.com> <08f90e7b-8d08-d46e-abb7-85dd68bc3078@hot.ee> <f4bf75cc-cb4a-9154-4189-2ae8e539ccf9@aklaver.com> <6e8bd48a-9c0b-e045-05ee-1cbe334b2bba@hot.ee> <0cf7c8fe-00fb-0998-d372-d5545234572f@aklaver.com> <eff2a916-379c-128c-0f62-e229fa4b8716@hot.ee> <45dc661e-f277-566b-4c47-97b2f8710975@aklaver.com> <b0c71270-e5dd-76d8-8488-3e5ba3ace4ef@hot.ee> <d1c9a330-0833-42e3-f85b-a0ccc3915394@aklaver.com> <a0efcaae-bc4b-7188-734e-d6a5161bb480@hot.ee> <61aa8e4d-645a-31c8-53ba-c83a5e01e48e@aklaver.com>

* 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