Re: Mimic parse bind execute in psql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Finzel <finzelj(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Mimic parse bind execute in psql?
Date: 2017-12-29 16:21:05
Message-ID: 21731.1514564465@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeremy Finzel <finzelj(at)gmail(dot)com> writes:
> If I want to mimic a log statement that is from an application that uses
> PARSE/BIND/EXECUTE, is there any way to mimic this behavior in psql, for
> example to troubleshoot execution plans, other than writing a named
> prepared statement, or manually subbing the parameters?

psql hasn't any way to do that. You might consider pgbench as a
possible substitute though --- not only can it do PARSE/BIND/EXECUTE,
but you can insert appropriate parameter values via variables.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Steele 2017-12-29 18:30:23 Re: PgBackRest question?
Previous Message chiru r 2017-12-29 15:58:53 Re: PgBackRest question?