pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pepe TD Vo <pepevo@yahoo.com>
To: Pgsql-general <pgsql-general@postgresql.org>
To: Pgsql-admin <pgsql-admin@postgresql.org>
Subject: create batch script to import into postgres tables
Date: Tue, 16 Jun 2020 14:20:56 +0000 (UTC)
Message-ID: <866581879.1147164.1592317256828@mail.yahoo.com> (raw)
References: <866581879.1147164.1592317256828.ref@mail.yahoo.com>

good morning experts,
I nêd to set up a batch script to import multi csv files to import them to Postgres tables.  Each csv files will be named table1_todaydate.csv, table2_todaydate.csv, etc... tablen_todaydate.csv.  Each csv file will import to its table and how do I execute the script to called psql from AWS?  Do I need to create each batch file for import each table?
all export file is store in c:\export\files\
thank you.
Bach-Nga





Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

view thread (32+ messages)  latest in thread

Message-ID: <866581879.1147164.1592317256828@mail.yahoo.com>
Permalink:  ../866581879.1147164.1592317256828@mail.yahoo.com/
Also on:    postgresql.org/message-id/866581879.1147164.1592317256828@mail.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pepevo@yahoo.com, pgsql-general@postgresql.org
  Subject: Re: create batch script to import into postgres tables
  In-Reply-To: <866581879.1147164.1592317256828@mail.yahoo.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