public inbox for [email protected]
help / color / mirror / Atom feedFrom: Oleg Dushin <[email protected]>
To: [email protected]
Subject: Using COPY via pg_background extension
Date: Tue, 24 Feb 2026 17:13:15 +0100
Message-ID: <[email protected]> (raw)
Hello everyone,
I couldn't find anything on this topic in the mailing lists or in the
documentation for the 'pg_background' extension.
https://github.com/vibhorkum/pg_background?tab=readme-ov-file#known-limitati
ons
Perhaps I overlooked something.
My question is: Is it possible to use the COPY protocol in combination with
pg_background?
More specifically, is it possible to load data from a file into a table via
background worker process?
COPY country FROM '/usr1/proj/bray/sql/country_data';
Would the following call or something similar be possible and achieve the
desired result??
pg_background_launch_v2('COPY country FROM
'/usr1/proj/bray/sql/country_data');
https://www.postgresql.org/docs/current/sql-copy.html
Kind regards,
Oleg
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Using COPY via pg_background extension
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox