Re: domain cast in parameterized vs. non-parameterized query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Kamholz <lautgesetz(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: domain cast in parameterized vs. non-parameterized query
Date: 2017-12-21 16:53:07
Message-ID: 2623.1513875187@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Kamholz <lautgesetz(at)gmail(dot)com> writes:
> In the view case that makes sense, but I don't see how ALTER DOMAIN is
> relevant to my original example. You can't alter a domain between the time
> the query is parsed and executed, can you?

Yes, you can. Especially so for prepared statements.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2017-12-21 17:38:01 Re: AS OF queries
Previous Message David Kamholz 2017-12-21 16:44:04 Re: domain cast in parameterized vs. non-parameterized query