Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmsMU-0000CV-Cj for pgsql-general@arkaria.postgresql.org; Mon, 15 Jul 2019 04:13:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hmsMT-0007xS-8m for pgsql-general@arkaria.postgresql.org; Mon, 15 Jul 2019 04:13:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmsMS-0007ty-TY for pgsql-general@lists.postgresql.org; Mon, 15 Jul 2019 04:13:12 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmsMQ-0006i8-Sw for pgsql-general@lists.postgresql.org; Mon, 15 Jul 2019 04:13:12 +0000 Received: by mail-ot1-x332.google.com with SMTP id b7so15495634otl.11 for ; Sun, 14 Jul 2019 21:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=9GXg5ys6z9eBI9vanPM0R6erMsa0JacPAYni/S1V1/4=; b=ZuPaiBb/T1py1shkGcknBlpaqFpLRamaFcciSrgx4SjVmrzqdod6l98tFwQmzAFfGg /nGMelmmz18pFpgJljwFFOSR5tnSEL4z2m0CIMt0QnTmAEjaupTmSCLj1BMKlT/iH+KW UX9eTmtt2oH79uQHfGRIrZiHV2CJcQQNq06Ro4U+mP4xxLo01fHQB/QyeBStEYeAOb6d 09sulk/zxmtSZ9FbF2iM0ObsJKqIU9oPhmlGdI93kVcJSOXDEB62O8/pogIWjILv9iEk zsHZnfcBIBEvcUJKWkUk3UVTbrMWXnwuVsdub6Ts2EtyAIdPNxwVWUI0GnYswYBgE92B DdFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=9GXg5ys6z9eBI9vanPM0R6erMsa0JacPAYni/S1V1/4=; b=mEc2x1mG2SPCOMgsePK3G9YMKwtLPCDOvx6RV3dPOZhPJ0cbABTNCp1CnQJ6NztKjs GESdMilUU2J33jMX+t6uqNctQqrzl67YMCA6a5HhPH/sEXvw5mk0T/KC5VVVQQ8j09QN qGvMLDFQ5xKE7znw2lFWpoGhr3RR9lbR+sh0aVkhmZN4sb+LWlHdb9WkHxg6iBg76CAv rosI4VmLJp1uxSOiScWgL+rLgYyQNhPIbTEBh1LRUyGrZk9D6e9BIxLaWLAgmTqqL5jH mNeZF5WwTWanVsl3GC5ZT2L2vuUUBsjH4UTS3Ti3akPZxobWLrYsxkjySOZB1ybDtj22 LfwQ== X-Gm-Message-State: APjAAAXi0sa/HbK9g3tasyzg56xSGn6Rcc5yJrsC/iXBUZYdYYUh9F7d ellR4m5i2hhkskwFiegNM/2srDMFxjc= X-Google-Smtp-Source: APXvYqy+neKIQFgc9+6yCjQe9JUrCtqptzVxdS2h2tMJUy/VAyRPGB25JhSjga+Apn4P5myPCX37kw== X-Received: by 2002:a05:6830:10da:: with SMTP id z26mr17149284oto.348.1563163988863; Sun, 14 Jul 2019 21:13:08 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id d17sm5753740otl.52.2019.07.14.21.13.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 21:13:08 -0700 (PDT) Subject: Re: how to execute pgsql2shp exe in sql To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: Date: Sun, 14 Jul 2019 23:13:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------04880D201C0C91022781F64B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------04880D201C0C91022781F64B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------04880D201C0C91022781F64B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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.
--------------04880D201C0C91022781F64B--