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.94.2) (envelope-from ) id 1ubPIJ-000QYP-4v for pgsql-general@arkaria.postgresql.org; Mon, 14 Jul 2025 19:56:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ubPIG-00CzqH-R5 for pgsql-general@arkaria.postgresql.org; Mon, 14 Jul 2025 19:56:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubPIG-00Czq9-Gd for pgsql-general@lists.postgresql.org; Mon, 14 Jul 2025 19:56:57 +0000 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ubPIE-007iJs-39 for pgsql-general@postgresql.org; Mon, 14 Jul 2025 19:56:56 +0000 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-60bd30dd387so2234206eaf.3 for ; Mon, 14 Jul 2025 12:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752523013; x=1753127813; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MrOqxiPiO+jONv8gFFu/wIAFaLN4EBT3ZHtPTQcMR8E=; b=FxbioE8eGcyNYfKzsVuSVtB0pVS/15VVAhxN48+pINImxECNcXAux59qUEfQ/nxW2W NGKyV275LVmJNGIuXbfzlLHT3pYmkEtLnWlZjGUjwr705y+QEwqSAin6DB4ZbtAdzJEH HN190QWv/esxnHLpOiGA7dmqlT2p85N9DkK+uOxvFuyRZB8ZRka2ExyBA9GJtJzhf/l/ UTQUFPj48XEXeNH2j2QiZ1yD/53V9Y7I7AliwzT211zxx+fGX3gjqJTW57IihwNU8EG0 0EFrx59MivD/qv9hDT/pSQk23LydStuBaU8wBpo+4oZvRFmEHr8gAjr7cF74NXA79XBz tSNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752523013; x=1753127813; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MrOqxiPiO+jONv8gFFu/wIAFaLN4EBT3ZHtPTQcMR8E=; b=MAm0D0mZDBzYMoP0plRmdZ5888fdJUjKXoQXHW7hiCG0nN6cpXbt/FutQ9z7qLqAdE wbhmxctKceLMF19HE1eadON0x7dwoJq+VlUflmGdCgZvTADs2AmotrY6BBc5aPLlwSrk KB+FMoXePS91e7KlUf8QHKlAnFpf2XHlB166/NW2SSfVFxHG+/0pxbn/zrB0Fu8pX7ML 8vZRsCB5uwNuXbrp1l6FijalxhrrlEZ6ziHUTmX5X2KMUAF5WxyH1YwVP2NcrmR89r/W WKmDw5/JyDNrl9/x0N95h84RMeGAsEMA9eo/dAVTRu/affHJY6u3lfXkybTNnwwz/2DR JbuA== X-Forwarded-Encrypted: i=1; AJvYcCXbXY+Vtp3XzL/ZVhc81Nod5yQgon812JqIfeZ+8WThwfJkKRoNXv1a83aP3+xfiLMNETlHqLaCXiiBRoGw@postgresql.org X-Gm-Message-State: AOJu0YwPRDt5uPSLp1zYN2rbceph4ab7gKT4Nw+TCM6a5lcCQg7cGDVB nxFw0GBIOrcLibDXaYYbhswct3NAUGrTOcRVtDutq6Xr61l71pHv2rzKCtzjvrV21XBMImM6Crl 7bsCgXAugys51lK0dES2wg1qJKKxlXR0= X-Gm-Gg: ASbGnctVTE3aI2nc76OPmxoawffyM9aFJF37O3U0IsV2wtvPW8GMTxk+S4Gc0OoM9lb 6g6fL60AG/ZKrI6f+NHDs843nQBAiwNA3zDZstuv297ST8mrulSUuYVmj4VN+Cq6gyjfF91k9ET RYeE9uuoAphTDFrY0qAdVQXKebPD7gLRSqH6I5p7QwaLiQwPLX5lcu1TJc8FhnOKXQuWo6wgtD4 BVpukNmrP6Bsr0uZ8xLRkP2PqFeos0lDkJDkW0= X-Google-Smtp-Source: AGHT+IFYeG6rYZhoG3l6VQ775OCnCXjC9Zyan8fW3tzimJOzKnkGDyOJ7le90FSXpovO5J8jnUm+x9F3yzOykhKvIqA= X-Received: by 2002:a05:6820:1793:b0:613:c100:a03f with SMTP id 006d021491bc7-613e5eedb14mr10751036eaf.1.1752523013079; Mon, 14 Jul 2025 12:56:53 -0700 (PDT) MIME-Version: 1.0 References: <9c84776d-d938-9fa4-ab1-6ee960ce6e7d@appl-ecosys.com> <7ec33517-6dc1-4e1d-b741-0c26eba7cc79@aklaver.com> In-Reply-To: From: "David G. Johnston" Date: Mon, 14 Jul 2025 12:56:16 -0700 X-Gm-Features: Ac12FXy-uAi3WYx3MGsUJ_as7pwEUnTS1iFiNtJsV8MCFgb2yiJQQB2Ir3Psduk Message-ID: Subject: Re: Syntax error needs explanation To: Adrian Klaver Cc: Rich Shepard , pgsql-general Content-Type: multipart/alternative; boundary="000000000000a7c80f0639e90f4c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a7c80f0639e90f4c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 14, 2025 at 12:45=E2=80=AFPM Adrian Klaver wrote: > > > > I mistyped the script's extension as .txt rather than .sql. > > That does not matter, that is more for user convenience in figuring out > what the files are for. > > I think all that is being said is the error was a simple typo, choosing the wrong file to execute. Not reading the error message was the real issue, not a failure to understand how psql scripting works. David J. --000000000000a7c80f0639e90f4c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 14, 2025 at 12:45=E2=80=AFPM Adrian Klaver <= ;adrian.klaver@aklaver.com= > wrote:
>
> I mistyped the script's extension as .txt rather than .sql.

That does not matter, that is more for user convenience in figuring out what the files are for.


I think all that is being said is t= he error was a simple typo, choosing the wrong file to execute.=C2=A0 Not r= eading the error message was the real issue, not a failure to understand ho= w psql scripting works.

David J.

--000000000000a7c80f0639e90f4c--