Re: how to execute pgsql2shp exe in sql

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: sunpeng <bluevaley(at)gmail(dot)com>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to execute pgsql2shp exe in sql
Date: 2019-07-15 04:14:48
Message-ID: da75db8c-8626-e23e-06f7-ac773981219f@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2019-07-15 06:30:21 Re: help understanding pgbench results
Previous Message Ron 2019-07-15 04:13:07 Re: how to execute pgsql2shp exe in sql