Re: ST_AsMVTGeom AND table name as parameter in pl/psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James McManus <jmpmcmanus(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ST_AsMVTGeom AND table name as parameter in pl/psql
Date: 2020-09-16 14:26:05
Message-ID: 1503792.1600266365@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

James McManus <jmpmcmanus(at)gmail(dot)com> writes:
> However, when I try and use EXECUTE in the mvtgeom AS section of the script
> I get a syntax error on EXECUTE:

You need to convert the *entire* query into a string and apply EXECUTE
to that. You can't use EXECUTE as a part of a query.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2020-09-16 14:28:06 Re: Proposal of new PostgreSQL Extension - PGSpiderExt
Previous Message Adam Brusselback 2020-09-16 14:23:22 Re: Proposal of new PostgreSQL Extension - PGSpiderExt