Re: To take backup of Postgresql Database without large objects - Mailing list pgsql-general

From Ron Johnson
Subject Re: To take backup of Postgresql Database without large objects
Date
Msg-id CANzqJaBqG4N7Cp06H_9eJZwYyxSL8Sf4Um1+bSKaPFA8cxaT1w@mail.gmail.com
Whole thread Raw
In response to Re: To take backup of Postgresql Database without large objects  ("sivapostgres@yahoo.com" <sivapostgres@yahoo.com>)
List pgsql-general
On Fri, Apr 11, 2025 at 8:56 AM sivapostgres@yahoo.com <sivapostgres@yahoo.com> wrote:
Hello,

Using PostgreSQL 15.1, compiled by Visual C++ build 1914, 64-bit in Windows 10.

That's 11 patch releases behind current.
 
Trying to take backup of a database, using pg_dump, where one table contains bytea datatype, which I don't want to include in the backup.

My command was:
"E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username> --no-blobs -F c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6 

the backup includes the bytea field also.  

I tried with 
"E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username> -B -F c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6 

also, which also included the bytea field.

What wrong I'm doing?  Couldn't figure it out.   Any help is appreciated.

The manual explicitly states what you're doing wrong.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

pgsql-general by date:

Previous
From: "sivapostgres@yahoo.com"
Date:
Subject: Re: To take backup of Postgresql Database without large objects
Next
From: Adrian Klaver
Date:
Subject: Re: To take backup of Postgresql Database without large objects