I would like to read file temp table in a function, like below.
create or replace function test(filepath text)
returns void
as
$$
declare
begin
copy sometable from filepath;
end
$$
language plpgsql;
Is there any way?
I would like to read file temp table in a function, like below.
create or replace function test(filepath text)
returns void
as
$$
declare
begin
copy sometable from filepath;
end
$$
language plpgsql;
Is there any way?