Re: Exclude pg_largeobject form pg_dump - Mailing list pgsql-general

From amul sul
Subject Re: Exclude pg_largeobject form pg_dump
Date
Msg-id CAAJ_b94f7cGtwH0Gw2Om4Gm8mU2nMqpA1DunfJjv0sVD3WML3g@mail.gmail.com
Whole thread Raw
In response to Re: Exclude pg_largeobject form pg_dump  (Andreas Joseph Krogh <andreas@visena.com>)
Responses Re: Exclude pg_largeobject form pg_dump
List pgsql-general
On Tue, Nov 8, 2016 at 5:36 AM, Andreas Joseph Krogh <andreas@visena.com> wrote:
>
>
> I don't see what you mean. It forces dump of Blobs if we didn't use -B and
> if we include everything in the dump, which seems good to me. What did you
> try that didn't work as expected?
>
>
> I guess what he means is that if -B is given, the following code sets
> dopt.outputBlobs = false
>
> +            case 'B':            /* Don't dump blobs */
> +                dopt.outputBlobs = false;
> +                break;
>
>
> Then this IF sets it back to TRUE:
>
> +    if (dopt.include_everything && !dopt.schemaOnly && !dopt.outputBlobs)
>          dopt.outputBlobs = true;
>
>
> ...making it impossible to turn off dumping of blobs.
>

Yes, thats the reason v4 patch  was not as expected.

Regards,
Amul Sul


pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Linux equivalent library for "postgres.lib" from Windows
Next
From: Michael Paquier
Date:
Subject: Re: Linux equivalent library for "postgres.lib" from Windows