pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed(no subject)
8+ messages / 5 participants
[nested] [flat]
* (no subject)
@ 2022-07-26 13:27 Rama Krishnan <raghuldrag@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Rama Krishnan @ 2022-07-26 13:27 UTC (permalink / raw)
To: pgsql-general
Hi all,
How to take a table backup using directory format?
I am having huge size of table when I am using a pg_dump it tooks more time
kindly suggest me
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-26 15:04 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Rama Krishnan <raghuldrag@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Adrian Klaver @ 2022-07-26 15:04 UTC (permalink / raw)
To: Rama Krishnan <raghuldrag@gmail.com>; pgsql-general
On 7/26/22 06:27, Rama Krishnan wrote:
> Hi all,
>
> How to take a table backup using directory format?
pg_dump -d <some_db> -U <some_user> -t <the_table> -Fd -f <new_dir>
> I am having huge size of table when I am using a pg_dump it tooks more
> time kindly suggest me
Not sure what the above means, so:
What is size of table?
What sort of time interval are you seeing?
What problem is it causing?
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-26 15:15 Rama Krishnan <raghuldrag@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 8+ messages in thread
From: Rama Krishnan @ 2022-07-26 15:15 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
Hi Adrian
Thanks for your reply,
My actual db size was 320G while I am taking custom format and moving into
directly S3 it took more than one day so I am trying to use directory
format because parllel option (-j option) supports ik directory format.
What is size of table?
I m having two Database example
01. Cricket 320G
02.badminton 250G
What sort of time interval are you seeing?
I am doing purge data to keep 1 year data n db more than year data I am
going yo take dump backup for future reports purpose.
What problem is it causing?
The normal custom format backup took more than day
On Tue, 26 Jul, 2022, 20:34 Adrian Klaver, <adrian.klaver@aklaver.com>
wrote:
> On 7/26/22 06:27, Rama Krishnan wrote:
> > Hi all,
> >
> > How to take a table backup using directory format?
>
> pg_dump -d <some_db> -U <some_user> -t <the_table> -Fd -f <new_dir>
>
> > I am having huge size of table when I am using a pg_dump it tooks more
> > time kindly suggest me
>
> Not sure what the above means, so:
>
> What is size of table?
>
> What sort of time interval are you seeing?
>
> What problem is it causing?
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-26 15:22 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Rama Krishnan <raghuldrag@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Adrian Klaver @ 2022-07-26 15:22 UTC (permalink / raw)
To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general
On 7/26/22 08:15, Rama Krishnan wrote:
> Hi Adrian
>
>
> Thanks for your reply,
>
> My actual db size was 320G while I am taking custom format and moving
> into directly S3 it took more than one day so I am trying to use
> directory format because parllel option (-j option) supports ik
> directory format.
Is the database in AWS also or is it locally hosted?
In either case what is the network distance that the data has to cross?
What is the network speed of the slowest link?
>
> What is size of table?
>
> I m having two Database example
>
> 01. Cricket 320G
> 02.badminton 250G
So you are talking about an entire database not a single table, correct?
>
> What sort of time interval are you seeing?
>
> I am doing purge data to keep 1 year data n db more than year data I am
> going yo take dump backup for future reports purpose.
>
> What problem is it causing?
>
> The normal custom format backup took more than day
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-26 16:29 Ron <ronljohnsonjr@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 8+ messages in thread
From: Ron @ 2022-07-26 16:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 7/26/22 10:22, Adrian Klaver wrote:
> On 7/26/22 08:15, Rama Krishnan wrote:
>> Hi Adrian
>>
>>
>> Thanks for your reply,
>>
>> My actual db size was 320G while I am taking custom format and moving
>> into directly S3 it took more than one day so I am trying to use
>> directory format because parllel option (-j option) supports ik
>> directory format.
>
> Is the database in AWS also or is it locally hosted?
>
> In either case what is the network distance that the data has to cross?
>
> What is the network speed of the slowest link?
>
>>
>> What is size of table?
>>
>> I m having two Database example
>>
>> 01. Cricket 320G
>> 02.badminton 250G
>
> So you are talking about an entire database not a single table, correct?
In a private email, he said that this is what he's trying:
Pg_dump -h endpoint -U postgres Fd - d cricket | aws cp - s3://dump/cricket.dump
It failed for obvious reasons.
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-26 17:48 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Adrian Klaver @ 2022-07-26 17:48 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org; +Cc: raghuldrag@gmail.com
On 7/26/22 9:29 AM, Ron wrote:
> On 7/26/22 10:22, Adrian Klaver wrote:
>> On 7/26/22 08:15, Rama Krishnan wrote:
>>> Hi Adrian
>>>
>>>
>>> What is size of table?
>>>
>>> I m having two Database example
>>>
>>> 01. Cricket 320G
>>> 02.badminton 250G
>>
>> So you are talking about an entire database not a single table, correct?
>
> In a private email, he said that this is what he's trying:
> Pg_dump -h endpoint -U postgres Fd - d cricket | aws cp -
> s3://dump/cricket.dump
>
> It failed for obvious reasons.
From what I gather it did not fail, it just took a long time. Not sure
adding -j to the above will improve things, pretty sure the choke point
is still going to be aws cp.
Rama if you have the space would it not be better to dump locally using
-Fc to get a compressed format and the upload that to s3 as a separate
process?
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-27 06:08 hubert depesz lubaczewski <depesz@depesz.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 8+ messages in thread
From: hubert depesz lubaczewski @ 2022-07-27 06:08 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org; raghuldrag@gmail.com
On Tue, Jul 26, 2022 at 10:48:47AM -0700, Adrian Klaver wrote:
> On 7/26/22 9:29 AM, Ron wrote:
> > On 7/26/22 10:22, Adrian Klaver wrote:
> > > On 7/26/22 08:15, Rama Krishnan wrote:
> > > > Hi Adrian
> > > >
> > > >
>
> > > > What is size of table?
> > > >
> > > > I m having two Database example
> > > >
> > > > 01. Cricket 320G
> > > > 02.badminton 250G
> > >
> > > So you are talking about an entire database not a single table, correct?
> >
> > In a private email, he said that this is what he's trying:
> > Pg_dump -h endpoint -U postgres Fd - d cricket | aws cp -
> > s3://dump/cricket.dump
> >
> > It failed for obvious reasons.
> From what I gather it did not fail, it just took a long time. Not sure
> adding -j to the above will improve things, pretty sure the choke point is
> still going to be aws cp.
It's really hard to say what is happening, because the command, as shown
wouldn't even work.
Starting from Pg_dump vs. pg_dump, space between `-` and `d`, "Fd" as
argument, or even the idea that you *can* make -Fd dumps to stdout and
pass it to aws cp.
depesz
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re:
@ 2022-07-27 18:19 Alicja Kucharczyk <zaledwie10minut@gmail.com>
parent: hubert depesz lubaczewski <depesz@depesz.com>
0 siblings, 0 replies; 8+ messages in thread
From: Alicja Kucharczyk @ 2022-07-27 18:19 UTC (permalink / raw)
To: Hubert Lubaczewski <depesz@depesz.com>; +Cc: Adrian Klaver <adrian.klaver@aklaver.com>; Ron <ronljohnsonjr@gmail.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>; raghuldrag@gmail.com
śr., 27 lip 2022 o 08:08 hubert depesz lubaczewski <depesz@depesz.com>
napisał(a):
> On Tue, Jul 26, 2022 at 10:48:47AM -0700, Adrian Klaver wrote:
> > On 7/26/22 9:29 AM, Ron wrote:
> > > On 7/26/22 10:22, Adrian Klaver wrote:
> > > > On 7/26/22 08:15, Rama Krishnan wrote:
> > > > > Hi Adrian
> > > > >
> > > > >
> >
> > > > > What is size of table?
> > > > >
> > > > > I m having two Database example
> > > > >
> > > > > 01. Cricket 320G
> > > > > 02.badminton 250G
> > > >
> > > > So you are talking about an entire database not a single table,
> correct?
> > >
> > > In a private email, he said that this is what he's trying:
> > > Pg_dump -h endpoint -U postgres Fd - d cricket | aws cp -
> > > s3://dump/cricket.dump
> > >
> > > It failed for obvious reasons.
> > From what I gather it did not fail, it just took a long time. Not sure
> > adding -j to the above will improve things, pretty sure the choke point
> is
> > still going to be aws cp.
>
> It's really hard to say what is happening, because the command, as shown
> wouldn't even work.
>
> Starting from Pg_dump vs. pg_dump, space between `-` and `d`, "Fd" as
> argument, or even the idea that you *can* make -Fd dumps to stdout and
> pass it to aws cp.
>
> depesz
>
I believe it's worth to look at this project:
https://github.com/dimitri/pgcopydb since it is trying to solve exactly
this problem
pozdrawiam,
best regards,
mit freundlichen Grüßen,
Alicja Kucharczyk
*Warsaw PostgreSQL User Group*
<https://www.meetup.com/pl-PL/Warsaw-PostgreSQL-Users-Group/;
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2022-07-27 18:19 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 13:27 Rama Krishnan <raghuldrag@gmail.com>
2022-07-26 15:04 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
2022-07-26 15:15 ` Re: Rama Krishnan <raghuldrag@gmail.com>
2022-07-26 15:22 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
2022-07-26 16:29 ` Re: Ron <ronljohnsonjr@gmail.com>
2022-07-26 17:48 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
2022-07-27 06:08 ` Re: hubert depesz lubaczewski <depesz@depesz.com>
2022-07-27 18:19 ` Re: Alicja Kucharczyk <zaledwie10minut@gmail.com>
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