pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Copying records from TABLE_A to TABLE_B (in the same database)
Date: Tue, 2 Aug 2022 13:08:41 -0600
Message-ID: <e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.com> (raw)
In-Reply-To: <6a0b6197-c0ce-f0a0-2b2f-18f2b6e9b0fa@gmail.com>
References: <5adcc923-889d-bb68-5a04-60125b6f0e96@gmail.com>
	<3e06c774-e323-db92-0cea-8600e1155600@gmx.net>
	<a91f43e2-3eb6-8232-e153-1ca9ec1199aa@gmail.com>
	<6a0b6197-c0ce-f0a0-2b2f-18f2b6e9b0fa@gmail.com>


>>>
>>> Logical replication might be another option.
>>> Although I am not sure if that is even possible inside
>>> the samme database.
>>> I know it's tricky inside the same server
>>> (between different databases)
>>>
>>>
>>>
>> If you can get outside sql, the bulk copy facilities (CopyManager in 
>> java) is blindingly fast for me.
>
> ??
>
I meant using tools other than sql (and psql).   I have java code using 
org.postgresql.copy package because straight insert was too slow for 
large numbers of rows.

view thread (11+ messages)  latest in thread

Message-ID: <e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.com>
Permalink:  ../e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.com/
Also on:    postgresql.org/message-id/e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.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: robjsargent@gmail.com
  Subject: Re: Copying records from TABLE_A to TABLE_B (in the same database)
  In-Reply-To: <e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.com>
  References: <5adcc923-889d-bb68-5a04-60125b6f0e96@gmail.com> <3e06c774-e323-db92-0cea-8600e1155600@gmx.net> <a91f43e2-3eb6-8232-e153-1ca9ec1199aa@gmail.com> <6a0b6197-c0ce-f0a0-2b2f-18f2b6e9b0fa@gmail.com> <e00f01c6-1528-4e13-d7b4-30907f33e1db@gmail.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