public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: H <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Combining metavariables and table names
Date: Mon, 29 Dec 2025 20:28:09 -0700
Message-ID: <CAKFQuwYjqQr69HnUzSmEdnSPGrbFe2vX-u3umtukz533-0X4Tw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CAKFQuwb9jdGH6-og4HFQv=AU7UH+V2AjoQy2y+xZ_Cjz1bx5FA@mail.gmail.com>
	<[email protected]>
	<CAKFQuwY5UK0YFi2yE1TBigQDK+Mh=jjzDfh9CLhPvNxN3e2nLA@mail.gmail.com>
	<[email protected]>

On Monday, December 29, 2025, H <[email protected]> wrote:

>
> I used the exact syntax you provided, however, I suspect that format()
> cannot be used in an argument in CREATE TRIGGER.
>

Oh, right.  I was apparently overlooking the context and got tunnel vision
around the “versioning” function call that isn’t really a call but rather a
stored expression; and so the arguments must be simple literals (as
documented).

In that case you do indeed need to do the work in the client since the
server needs the final result handed to it.

You could also just create a wrapper function that calls versioning and has
the two name part arguments as separate inputs.

David J.


view thread (3+ messages)

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]
  Subject: Re: Combining metavariables and table names
  In-Reply-To: <CAKFQuwYjqQr69HnUzSmEdnSPGrbFe2vX-u3umtukz533-0X4Tw@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