pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pepe TD Vo <pepevo@yahoo.com>
To: Christopher Browne <cbbrowne@gmail.com>
Cc: Pgsql-admin <pgsql-admin@postgresql.org>
Cc: Pgsql-general <pgsql-general@postgresql.org>
Subject: Re: create batch script to import into postgres tables
Date: Thu, 18 Jun 2020 17:00:04 -0700
Message-ID: <37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.com> (raw)
In-Reply-To: <11274973.331659.1592523468015@mail.yahoo.com>
References: <866581879.1147164.1592317256828.ref@mail.yahoo.com>
	<866581879.1147164.1592317256828@mail.yahoo.com>
	<1f5f4fd6-ad22-4823-c922-17a021c2c0d7@aklaver.com>
	<74046808.1129536.1592317823808@mail.yahoo.com>
	<3625e291-8456-3831-6205-2d73232bcd1e@aklaver.com>
	<1718146430.1151531.1592319564343@mail.yahoo.com>
	<CAFNqd5U_9N6pagHYivRxN1hrq-YrE=gD3n3W76fzORojXMZcVg@mail.gmail.com>
	<1761277119.1163490.1592322138731@mail.yahoo.com>
	<732982585.145357.1592493607620@mail.yahoo.com>
	<cd3af30c-41a2-4df1-d41e-6316b692227e@aklaver.com>
	<1814718409.184531.1592498400894@mail.yahoo.com>
	<4d5841c4-9a6c-0e20-2c05-c21d3d3942df@aklaver.com>
	<889466258.267016.1592510085000@mail.yahoo.com>
	<57eddc72-9278-9e17-3df2-3cd8bb40e82d@aklaver.com>
	<11274973.331659.1592523468015@mail.yahoo.com>

On 6/18/20 4:37 PM, Pepe TD Vo wrote:
> thank you for the link.  I did try it and it's still error
> 
> echo 'SELECT count(*) FROM tableA;' |
> C:\Program Files\PostgreSQL\11\bin\psql -U PSmasteruser -d PSCIDR -h 
> hostname.amazonaws.com -p 5432


This is getting old. The error is?
> 
> I can run 'psql -u postgres -d PSCIDR -p 5432' (on Linux server, still 
> learning how to run it from psql shell in Window) fine from psql 
> prompt.  Just still wonder how to connect directly to the instance 
> PSCIDR from scripting in both aws and linux.  Otherwise manually run 
> using pgAdmin.
> 
> v/r,
> 
> **
> *Bach-Nga
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (32+ messages)  latest in thread

Message-ID: <37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.com>
Permalink:  ../37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.com/
Also on:    postgresql.org/message-id/37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: adrian.klaver@aklaver.com, pepevo@yahoo.com, cbbrowne@gmail.com, pgsql-general@postgresql.org
  Subject: Re: create batch script to import into postgres tables
  In-Reply-To: <37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.com>
  References: <866581879.1147164.1592317256828.ref@mail.yahoo.com> <866581879.1147164.1592317256828@mail.yahoo.com> <1f5f4fd6-ad22-4823-c922-17a021c2c0d7@aklaver.com> <74046808.1129536.1592317823808@mail.yahoo.com> <3625e291-8456-3831-6205-2d73232bcd1e@aklaver.com> <1718146430.1151531.1592319564343@mail.yahoo.com> <CAFNqd5U_9N6pagHYivRxN1hrq-YrE=gD3n3W76fzORojXMZcVg@mail.gmail.com> <1761277119.1163490.1592322138731@mail.yahoo.com> <732982585.145357.1592493607620@mail.yahoo.com> <cd3af30c-41a2-4df1-d41e-6316b692227e@aklaver.com> <1814718409.184531.1592498400894@mail.yahoo.com> <4d5841c4-9a6c-0e20-2c05-c21d3d3942df@aklaver.com> <889466258.267016.1592510085000@mail.yahoo.com> <57eddc72-9278-9e17-3df2-3cd8bb40e82d@aklaver.com> <11274973.331659.1592523468015@mail.yahoo.com> <37a9ad71-b297-96b3-9c1f-1043e75dec58@aklaver.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