pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to execute pgsql2shp exe in sql
3+ messages / 3 participants
[nested] [flat]

* how to execute pgsql2shp exe in sql
@ 2019-07-15 03:54 sunpeng <bluevaley@gmail.com>
  2019-07-15 04:13 ` Re: how to execute pgsql2shp exe in sql Ron <ronljohnsonjr@gmail.com>
  2019-07-15 04:14 ` Re: how to execute pgsql2shp exe in sql Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 3+ messages in thread

From: sunpeng @ 2019-07-15 03:54 UTC (permalink / raw)
  To: pgsql-general

Could I use the following in psql or in a sql :
"D:\PostgreSQL\9.6\bin\pgsql2shp ...."

thanks
peng

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to execute pgsql2shp exe in sql
  2019-07-15 03:54 how to execute pgsql2shp exe in sql sunpeng <bluevaley@gmail.com>
@ 2019-07-15 04:13 ` Ron <ronljohnsonjr@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Ron @ 2019-07-15 04:13 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 7/14/19 10:54 PM, sunpeng wrote:
> Could I use the following in psql or in a sql :
> "D:\PostgreSQL\9.6\bin\pgsql2shp ...."


This *should* work, though you might have to fiddle with the quotes:

yourdb=> \! "D:\PostgreSQL\9.6\bin\pgsql2shp ...."


-- 
Angular momentum makes the world go 'round.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: how to execute pgsql2shp exe in sql
  2019-07-15 03:54 how to execute pgsql2shp exe in sql sunpeng <bluevaley@gmail.com>
@ 2019-07-15 04:14 ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2019-07-15 04:14 UTC (permalink / raw)
  To: sunpeng <bluevaley@gmail.com>; pgsql-general

On 7/14/19 8:54 PM, sunpeng wrote:
> Could I use the following in psql or in a sql :
> "D:\PostgreSQL\9.6\bin\pgsql2shp ...."

It's a command line program. See the docs:

https://postgis.net/docs/using_postgis_dbmanagement.html

4.5.2. Using the Dumper

The pgsql2shp table dumper connects directly to the database and 
converts a table (possibly defined by a query) into a shape file. The 
basic syntax is:
...
> 
> thanks
> peng


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-07-15 04:14 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 03:54 how to execute pgsql2shp exe in sql sunpeng <bluevaley@gmail.com>
2019-07-15 04:13 ` Ron <ronljohnsonjr@gmail.com>
2019-07-15 04:14 ` Adrian Klaver <adrian.klaver@aklaver.com>

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