pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrey V. Lepikhov <a.lepikhov@postgrespro.ru>
To: Sanaba, Bilva <bilvas@amazon.com>
To: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Adding Support for Copy callback functionality on COPY TO api
Date: Wed, 30 Sep 2020 13:48:12 +0500
Message-ID: <ac458ac3-3223-9a9d-1e8b-2e7fa3b6b32e@postgrespro.ru> (raw)
In-Reply-To: <253C21D1-FCEB-41D9-A2AF-E6517015B7D7@amazon.com>
References: <253C21D1-FCEB-41D9-A2AF-E6517015B7D7@amazon.com>

On 7/2/20 2:41 AM, Sanaba, Bilva wrote:
> Hi hackers,
> 
> Currently, the COPY TO api does not support callback functions, while 
> the COPY FROM api does. The COPY TO code does, however, include 
> placeholders for supporting callbacks in the future.
> 
> Rounding out the support of callback functions to both could be very 
> beneficial for extension development. In particular, supporting 
> callbacks for COPY TO will allow developers to utilize the preexisting 
> command in order to create tools that give users more support for moving 
> data for storage, backup, analytics, etc.
> 
> We are aiming to get the support in core PostgreSQL and add COPY TO 
> callback support in the next commitfest.The attached patch contains a 
> change to COPY TO api to support callbacks.
> 
Your code almost exactly the same as proposed in [1] as part of 'Fast 
COPY FROM' command. But it seems there are differences.

[1] 
https://www.postgresql.org/message-id/flat/3d0909dc-3691-a576-208a-90986e55489f%40postgrespro.ru

-- 
regards,
Andrey Lepikhov
Postgres Professional





view thread (17+ messages)  latest in thread

Message-ID: <ac458ac3-3223-9a9d-1e8b-2e7fa3b6b32e@postgrespro.ru>
Permalink:  ../ac458ac3-3223-9a9d-1e8b-2e7fa3b6b32e@postgrespro.ru/
Also on:    postgresql.org/message-id/ac458ac3-3223-9a9d-1e8b-2e7fa3b6b32e@postgrespro.ru

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: a.lepikhov@postgrespro.ru, bilvas@amazon.com
  Subject: Re: Adding Support for Copy callback functionality on COPY TO api
  In-Reply-To: <ac458ac3-3223-9a9d-1e8b-2e7fa3b6b32e@postgrespro.ru>

* 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