public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Max Ulidtko <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: Achilleas Mantzios <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: [email protected]
Subject: Re: Getting error 42P02, despite query parameter being sent
Date: Sun, 17 Nov 2024 10:18:22 -0700
Message-ID: <CAKFQuwb+5Rxp_gV2ZD7w27xt_QV-Okn2veFg1zMDduGUQyUDiA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

On Sun, Nov 17, 2024 at 3:10 AM Max Ulidtko <[email protected]> wrote:

> I assumed that $1 would get substituted *at query time*
>

The "select" portion of a "create view" query does not get executed during
processing of "create view" and it is the "select" execution part of the
executor code that performs parameter substitution.  IOW, "at query time"
never actually happens, the query is only considered as a literal to be
parsed.

David J.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Getting error 42P02, despite query parameter being sent
  In-Reply-To: <CAKFQuwb+5Rxp_gV2ZD7w27xt_QV-Okn2veFg1zMDduGUQyUDiA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox