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 1tIEd0-00D6VI-Bg for pgsql-novice@arkaria.postgresql.org; Mon, 02 Dec 2024 22:10:50 +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 1tIEcw-003v1l-Rf for pgsql-novice@arkaria.postgresql.org; Mon, 02 Dec 2024 22:10:48 +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 1tIEcw-003v1d-IJ for pgsql-novice@lists.postgresql.org; Mon, 02 Dec 2024 22:10:47 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tIEcu-000isJ-5U for pgsql-novice@lists.postgresql.org; Mon, 02 Dec 2024 22:10:46 +0000 Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2ffb3cbcbe4so51358871fa.0 for ; Mon, 02 Dec 2024 14:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1733177443; x=1733782243; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=GNRI6ibZfodHIVMRs3rMju0Ri1TgER0q5X3bCgoUQgg=; b=OQgxRwIisK2coK+Za+YEh9ZxpGUd5+uy6baOm+nJSFYwtXzhi7IlL+twLnqptcBw/L Mh72wZLegaI3wXKed7z5/HrbYVzDnPv6yvji4NkmiBPggyfiKg1sdKfvXaeSQQfZHdTm SAiUnAPxKFLZbJJ334nUF24ZxtH3m7DAzb04Nz5gnpYLvwThn4hpO01pr0B5xkOWy3nl U5bBOt5S3eMdD4a40NlInh+MHHfQdCsKugNgLrEG20/SuQE5ImfTn/suWtjGIB+dIrGf 4wPv5I7tbOtLejjgwweaVH9xbnAISGzEcCW/b4Hsg5hem7ihwTHmv34Decj2bXj1eqhW T6hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733177443; x=1733782243; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GNRI6ibZfodHIVMRs3rMju0Ri1TgER0q5X3bCgoUQgg=; b=kZ3owDMbveCWFoE1lcHEHeTBaP1gYjJ7GPzh5d1v3oDFcWUqEUmUIKjO+38b5+GBa5 2I7n1m9Ew0CMtLTLdZKLs+gh7lWAhXpTrU3oPisrx8QzOwTXRyqwY/vmBlFZXPr4Vo+e tASgb6X+K6DZxRSC+IFsBKUJQWgxDww1TzKW+xX9RKaDQTDwmcGdJjngRZOzcSe7CfTt ZC9xiprhZfpCMPeNerYdIwA7jFGXlcT8yDpRYEUcUmQnv18GFhjuLwv/Ut10O2mRSIM6 1Ira34vGNP1B9+jyWnFG0M2cr4YAGBGPALi05uFOtdOQYgsJj2cOPDwhY709dd4livxN SvvA== X-Forwarded-Encrypted: i=1; AJvYcCV4M6ArNmt1CgyGfrmtdFaiQE7QaipLMRgtzKkWNsWDZGugsMNmVdQsiMwJWBkYEDATCZAfZF1TEsSwaq8=@lists.postgresql.org X-Gm-Message-State: AOJu0YyB7XsMiA3+ropyld0IE2C1M2x55sn2PXEhcIBviL09yk3UGUPw M5WfsWh3ic7yqsjY4UO1Yv5BkdeMbqaJ2TI7dHHSF7HvAjnoC4Fki2QTy7meEeg= X-Gm-Gg: ASbGncubgsvTCSV+BOudMUYM2+cfQM3Vj8p5XQoHL2+l2oyRLcDMJtHI3AY5CF28k1y 0d4bfatT/R0qkOuz88nVkSnrGlyKddy8NCboeSntbRi/aZhPTGYvs26gRtGxoNlVWa3MUPvdW25 JAUI0jJhy/fRr8laQnz4LqPU2vMrb/2hIhVwFTQ4NyOTh8V4k39Ja9TkyPNQZhpRQ6rIRDV1bbg QsOz5jni/wbRlNiK7W1zI/NPVA7Xo/FEbpvpFgxkKf9VnQNbdWV8YqdbsZk+5dXu1o42MfXYLEm 1pnBSYxugHc0hlnkXA/85SNrSuDAv7eyCOhZdwPlRPMGLn2KHw== X-Google-Smtp-Source: AGHT+IE0Vl6ct1IVqJOMiq+yyWreX5g3fL8KQrvCMZyCWfOIir1+tP4R1UG5BXAYtGSlhlksrqUFgQ== X-Received: by 2002:a05:651c:160a:b0:2fb:6181:8ca1 with SMTP id 38308e7fff4ca-30009bf6220mr1809811fa.6.1733177442832; Mon, 02 Dec 2024 14:10:42 -0800 (PST) Received: from localhost.localdomain (dslb-002-200-202-108.002.200.pools.vodafone-ip.de. [2.200.202.108]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d0e9bba5c2sm1807739a12.8.2024.12.02.14.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 14:10:42 -0800 (PST) Message-ID: <30948e6771500c0e9d8b587f4e34165aadb1cc0b.camel@cybertec.at> Subject: Re: Command Line option misunderstanding From: Laurenz Albe To: punch-hassle-guise@duck.com, "pgsql-novice@lists.postgresql.org" Date: Mon, 02 Dec 2024 23:10:42 +0100 In-Reply-To: References: <487DB217-EA37-4139-AB97-B61B04ECAEA7.1@smtp-inbound1.duck.com> <493C622D-D3B6-4662-A617-EBCCDE5AA4DF.1@smtp-inbound1.duck.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-2.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2024-12-02 at 16:21 -0500, punch-hassle-guise@duck.com wrote: > I am not trying to be contentious, but a simple search shows that every= =20 > major implementation of SQL allows variables and there are hundreds if= =20 > not thousands of pages dedicated to the idea of using variables in SQL= =20 > and how they are fundamental. >=20 >=20 > There are certainly reasons this doesn't work, but saying variables are= =20 > psql specific...... You *are* trying to be contentious. In PostgreSQL, there are psql variables, but no SQL variables. You may not like that, that's okay. But that's how it currently is, and it is documented like that. If you want that to change, your best option is to review https://commitfest.postgresql.org/51/1608/ which tries to introduce variables into SQL. As far as I can tell, the SQL standard knows variables only as host variables in embedded SQL. Yours, Laurenz Albe