Re: permission denied for large object 200936761

From: Andrus <kobruleht2(at)hot(dot)ee>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: permission denied for large object 200936761
Date: 2021-02-01 22:06:51
Message-ID: 541b70a0-95cf-d919-0b48-618837481922@hot.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>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.

pg_dump which throws error is called with -n public -n firma74 parameters

I tried

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

It returs 0 rows.

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2021-02-01 22:08:42 Re: vacuum is time consuming
Previous Message Adrian Klaver 2021-02-01 21:59:18 Re: permission denied for large object 200936761