pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <gsievers19@comcast.net>
To: Mark Moellering <markmoellering@psyberation.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: best way to write large data-streams quickly?
Date: Tue, 10 Apr 2018 13:09:52 -0500
Message-ID: <8737039bm7.fsf@jsievers.enova.com> (raw)
In-Reply-To: <CAA0uU3W4Loyv3Bubo_m9TVp80W0odnq1euthH6X+rjgSKWiSjw@mail.gmail.com>
References: <CAA0uU3XCiReRsK9-4Zsk0Mdhan1dG2Q4dj6iPQiEc-kOJumLyw@mail.gmail.com>
	<1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com>
	<CAA0uU3W4Loyv3Bubo_m9TVp80W0odnq1euthH6X+rjgSKWiSjw@mail.gmail.com>

Mark Moellering <markmoellering@psyberation.com> writes:

<snip>

>
> How long can you run COPY?  I have been looking at it more closely. 
> In some ways, it would be simple just to take data from stdin and
> send it to postgres but can I do that literally 24/7?  I am
> monitoring data feeds that will never stop and I don't know if that
> is how Copy is meant to be used or if I have to let it finish and
> start another one at some point? 

Launch a single copy and pipe data into it for an extended period an/or
bulk is fine but nothing will be visible until the statement is finished
and, if it were run in a transaction block, the block committed.

HTH

>
> Thanks for everyones' help and input!
>
> Mark Moellering
>
>
>
>

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800




view thread (4+ messages)

Message-ID: <8737039bm7.fsf@jsievers.enova.com>
Permalink:  ../8737039bm7.fsf@jsievers.enova.com/
Also on:    postgresql.org/message-id/8737039bm7.fsf@jsievers.enova.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: gsievers19@comcast.net, markmoellering@psyberation.com
  Subject: Re: best way to write large data-streams quickly?
  In-Reply-To: <8737039bm7.fsf@jsievers.enova.com>
  References: <CAA0uU3XCiReRsK9-4Zsk0Mdhan1dG2Q4dj6iPQiEc-kOJumLyw@mail.gmail.com> <1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com> <CAA0uU3W4Loyv3Bubo_m9TVp80W0odnq1euthH6X+rjgSKWiSjw@mail.gmail.com> <8737039bm7.fsf@jsievers.enova.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