Re: how to execute pgsql2shp exe in sql - Mailing list pgsql-general

From Adrian Klaver
Subject Re: how to execute pgsql2shp exe in sql
Date
Msg-id da75db8c-8626-e23e-06f7-ac773981219f@aklaver.com
Whole thread Raw
In response to how to execute pgsql2shp exe in sql  (sunpeng <bluevaley@gmail.com>)
List 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



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: how to execute pgsql2shp exe in sql
Next
From: Luca Ferrari
Date:
Subject: Re: help understanding pgbench results