pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kumar, Virendra <Virendra.Kumar@guycarp.com>
To: Don Seiler <don@seiler.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: Archiving Data to Another DB?
Date: Wed, 11 Apr 2018 18:59:16 +0000
Message-ID: <2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.com> (raw)
In-Reply-To: <CAHJZqBAS8h18G7c7LbEnX1eRr15cojcf+GtHYESSkpUPxvuV4Q@mail.gmail.com>
References: <CAHJZqBAnK+fNpWM55yHXOVqZxPwzq0Gkgv8yPEDAy6KSuhQkBQ@mail.gmail.com>
	<ed6050c8-bd18-87c9-9522-ea1f2c07a5c8@aklaver.com>
	<CAHJZqBDJ7M_sJAOAKAp7JarSfxfTtOjqjgWta5Nhu4tgqwqjHw@mail.gmail.com>
	<ae18f69c-8ae3-79e3-517a-719bd7700643@aklaver.com>
	<CAHJZqBDL4-seHSDuT7oGCFZoyznPFnJ3c-JutLf7zV=VWvMTXQ@mail.gmail.com>
	<CAHJZqBAS8h18G7c7LbEnX1eRr15cojcf+GtHYESSkpUPxvuV4Q@mail.gmail.com>

Does this apply to SELECT calls as well or only for DMLs.
I am planning to use postgres_fdw but if it is going by one row at a time there will be a lot of round trip and defeat the purpose.

Regards,
Virendra.

From: Don Seiler [mailto:don@seiler.us]
Sent: Wednesday, April 11, 2018 2:53 PM
To: Adrian Klaver
Cc: pgsql-general@postgresql.org
Subject: Re: Archiving Data to Another DB?

On Wed, Apr 11, 2018 at 1:38 PM, Don Seiler <don@seiler.us<mailto:don@seiler.us>> wrote:

Yeah, I saw the same with a 132 row insert. Now imagine that with a monthly 50 million row insert or delete. :p Thanks for the confirmation!

I went back to look at the postgres logs on my dev server. These logs are rotated once they hit 2G in size. One typical log from the middle of my test last night hit that in 13 minutes and had over 5.2 million DELETE calls. There a quite a few logs like this. That would not be fun for the disk space on the log volume, either.

Don.
--
Don Seiler
www.seiler.us<http://www.seiler.us;

________________________________

This message is intended only for the use of the addressee and may contain
information that is PRIVILEGED AND CONFIDENTIAL.

If you are not the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify the sender immediately. Thank you.


view thread (12+ messages)  latest in thread

Message-ID: <2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.com>
Permalink:  ../2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.com/
Also on:    postgresql.org/message-id/2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.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: Virendra.Kumar@guycarp.com, don@seiler.us, adrian.klaver@aklaver.com
  Subject: Re: Archiving Data to Another DB?
  In-Reply-To: <2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.com>
  References: <CAHJZqBAnK+fNpWM55yHXOVqZxPwzq0Gkgv8yPEDAy6KSuhQkBQ@mail.gmail.com> <ed6050c8-bd18-87c9-9522-ea1f2c07a5c8@aklaver.com> <CAHJZqBDJ7M_sJAOAKAp7JarSfxfTtOjqjgWta5Nhu4tgqwqjHw@mail.gmail.com> <ae18f69c-8ae3-79e3-517a-719bd7700643@aklaver.com> <CAHJZqBDL4-seHSDuT7oGCFZoyznPFnJ3c-JutLf7zV=VWvMTXQ@mail.gmail.com> <CAHJZqBAS8h18G7c7LbEnX1eRr15cojcf+GtHYESSkpUPxvuV4Q@mail.gmail.com> <2e5cff1cdbbf4a98b4cbc3fac5dbdbff@USDFW11XG20CN01.mercer.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