I have a program that produces zip files and I save these temporarily in a directory like this:
1.zip
2.zip
3.zip
...
I did a PHP program to load each of these files into a Postgres database but I need to do this with the command Postgres "copy" (because probably is faster)
I searched but I could not find the answer
So my table is like this:
CREATE TABLE files (
id int,
file bytea,
primary key (id));
So each file name is the "id" column and each zip file will be in "file" field
So how can i do this with a copy command?
Thank you all!