Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1va2SJ-002kn0-0R for pgsql-general@arkaria.postgresql.org; Mon, 29 Dec 2025 01:53:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1va2SI-00F0Eo-0I for pgsql-general@arkaria.postgresql.org; Mon, 29 Dec 2025 01:53:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1va2SH-00F0Ef-2Q for pgsql-general@lists.postgresql.org; Mon, 29 Dec 2025 01:53:54 +0000 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1va2SG-0036UR-2k for pgsql-general@lists.postgresql.org; Mon, 29 Dec 2025 01:53:53 +0000 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-3f4f9ea26aaso6132904fac.0 for ; Sun, 28 Dec 2025 17:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766973231; x=1767578031; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8mFrUR9J1W9PuKXak/pDCM9SjQNQ2j1dpz8CGYAKcSc=; b=NkzvMifO3bY6s57k8zbPbFDpYQNLEwEYPXF+RUzMvlgAbEBrflTOBqwOg2WnONFw5/ 6O5+DgzULr6l2bmrSPNpzTLUlf6oaxzJlLIeR7TgSe7991+E8VCa++hGmdK4YI5koEu4 T4eJm823SCxm0povzh4+vbMWmcE54ZLa94N5JZYw/4GXe/nmolj1J8alSfZ85EySCwQo dw5OKXeD4tUKFp7100AANTCqJxaAH8TnOyaYwtTyezdjkMWHi5crByzRR1W+mZkI+Ynr yr6zgJRFWdNOD8kiIybETQGfJ66MHmTT/18m5hwlHuOhQuwGRzen2LEdwrt3EUjyS84s fkDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766973231; x=1767578031; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8mFrUR9J1W9PuKXak/pDCM9SjQNQ2j1dpz8CGYAKcSc=; b=XD3qAp6gM9Xg3smdpY3gL64ryyNzFCHvPHsCpk0/yPi95cC0c76GVEPm3JQFuVya/c YgDv98exJdAAFTOUZLDkMzfxKjrk3/8kt7TYjoei7XOYETjwquV7qzE9kVeY8UD9HEQQ a+OQP9+yZoa3RO4KC/CvdjmrqmunIpxsYDrfW8Tm6NbtgVCF/OpUyGkWAptTeY5asJas 5lT6klIIuoWlDj1mRrjAzKFvL03tJDRSYV9UlTTPmybcd0kq5YdhGvZMd1Bl+ojWirhY GGf0itutqWmwm/UW7ZQqiCsJb+Z6ZS+f82yHrCSdCM57WXpfsfGVdpj79dmUwqV149ih nNIg== X-Gm-Message-State: AOJu0Yxi7W65JDZ+vucWnllB0QqA/eNryanBsOi76nWWR77QU3aaUqTv Rl1iQ7Pn3YeN4QiyHlm482YS6xLEN3II6J3kYz2QD0Tr8//tN5zag4UVcJsex+vKZ/cmrb9uGxe 4Ebhf1ueR9T7NtGtdKfwswl5NmermEm4= X-Gm-Gg: AY/fxX7n8UxGKChGiwRKkSg+nF9W6DdyfB7QpubvNzEl9HSFcxsLX7rWsNGaI24JCMq cxSRYTXJDidjaXr3tkxEbJQFKIWXZRSOmSeaEVDZT0gsEhu7lxC4QdTqsN7igOJ8Q41Jqsco0yl YWErpx++eElag3FJYRW347zVf+QFkxQVtSbu5sPQTZwNg9FUbujPTEzLr4q0eNTaqNWZ6OLCHCm a40vsNfYN60b276ozgtT3nVLeMMF7rjZ1RHvQfESqdYYwxpUDVBF1Fylt9NuXZgFwbjL149 X-Google-Smtp-Source: AGHT+IF8qTPTyZt9vqj1NjWMpGVgR0ZawN2RbFFS4Auv2+CBoSogFKFzIARLxkGIKNaWE8rnA+3yGaKrNpxQB+iaUxQ= X-Received: by 2002:a05:6820:16a4:b0:65c:fd25:f43d with SMTP id 006d021491bc7-65d0eaa182dmr13445001eaf.59.1766973231574; Sun, 28 Dec 2025 17:53:51 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac9:5a18:0:b0:60b:10c8:476a with HTTP; Sun, 28 Dec 2025 17:53:50 -0800 (PST) In-Reply-To: <8254F175-871C-4678-8D28-A67E09B099A6@meddatainc.com> References: <8254F175-871C-4678-8D28-A67E09B099A6@meddatainc.com> From: "David G. Johnston" Date: Sun, 28 Dec 2025 18:53:50 -0700 X-Gm-Features: AQt7F2rUUNZ9Ukw65MHUA_vvNr9B2McsecfHHg7Yzlioja4NMGyEm_3a725FR-0 Message-ID: Subject: Re: Combining metavariables and table names To: H Cc: PostgreSQL Users Mailing List Content-Type: multipart/alternative; boundary="000000000000cbb39306470d83c9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000cbb39306470d83c9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, December 28, 2025, H wrote: > > I have a feeling I might be missing how to use the combination of a > metavariable and a table name when used in an argument to a procedure. No, what you are doing is impossible if you limit yourself to direct SQL command syntax writing. > Even though I gotten it to work, what would the correct usage be? > I=E2=80=99d probably do something like: versioning(=E2=80=A6, format(=E2=80=98%I.%I=E2=80=99, :=E2=80=99s=E2=80=99,= =E2=80=98test_history=E2=80=99), =E2=80=A6) David J. --000000000000cbb39306470d83c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, December 28, 2025, H <agents@meddatainc.com> wrote:
I have a feeling I might be missing how to use the combination of a metavar= iable and a table name when used in an argument to a procedure.

No, what you are doing is impossible if you limit your= self to direct SQL command syntax writing.
=C2=A0
Even though I gotten it to work, what would the correct usage be?

I=E2=80=99d probably do something like:

versioning(=E2=80=A6, format(=E2=80=98%I.%I=E2=80=99= , :=E2=80=99s=E2=80=99, =E2=80=98test_history=E2=80=99), =E2=80=A6)

David J.

--000000000000cbb39306470d83c9--