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 1t3HYb-00Bd3S-5j for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2024 16:16:29 +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 1t3HYZ-001ISY-Gy for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2024 16:16:27 +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.94.2) (envelope-from ) id 1t3HYZ-001ISP-5u for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2024 16:16:27 +0000 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t3HYX-002JSq-4j for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2024 16:16:26 +0000 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5ebc349204cso1134673eaf.3 for ; Tue, 22 Oct 2024 09:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729613784; x=1730218584; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rTxGeFMNy22/uGnmvHPLNcMXKUTwyztizNJmujZd1w4=; b=lFfqKqQUSJmTPFw/VShZq5p53Y/qsGv0/uxWJkIRjun1wOhRrfklC+AQvNdrTh6KXs xOUFO1cGUbWDNfiOg1l1GNTtJ10YVMQvhrGZw++oELdw6y3ceQwM69QLM0Wn/QreeczV FSdAuYcHPA94fGxAparbi+ZOfpjfYJtxwSFRzCnS+ZPTFcgoAY5x7qESBW+6WIz6P9dk L+xD1U6sWwNrDflLtWNa84myZVkp0qJfAlneGDwzvJ9jYN9rgHLjJdHlTVq/xGB4bsI5 7GKskH4jAPHeCnmXz3DH6zeRINg2YzDQTpl4vWrgRgoQCmkT5Rbhk2SnjmZ/4oP65HAt 67sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729613784; x=1730218584; h=content-transfer-encoding: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=rTxGeFMNy22/uGnmvHPLNcMXKUTwyztizNJmujZd1w4=; b=JnCvGRkaTmwJRinX2zyLZo7/6oHYeglpbFk1/dYmyS6s9WUNynv4I8BusZsMKqFhVI y3cjBq+PyXpwAw2bW/VIwgtotmCPTleu88XyeFIoamwoIgQOQq6EKXhtf6LAdbMXdzmC h5CjqMM+MvMx4B5A1VOBqQzQyfDjwdc1LcVrZbVD1MEKlMDKQhfI95I2VtT1kmRMbkbR KdVSyZymsmNOptlK1/EF6SVTY5xfwwweIvB/rinnWaoEBZ5px7vkYGtim6unQgyPMkx0 nHZLK6gvUyqwoxCdmr4DxSdsAnXygF86Jes2mzzd2ywU+xFCqb5hx2+LAuRxRGxjDNE4 ssQA== X-Gm-Message-State: AOJu0YwddYbRQ5F/o3Z4hTCxXtD+iEU93UvNAXcYb0ff9XcteinkVhdQ /Hl8va3ncfFlLazMnwTVDwjTZkFFqq2diufH6su6fogPqqxMhCZ7E9YD7wkMtr6S9smr22cg67u G+ZvjmOSr6EdGuGw6K61nKDvymhlmrhU5 X-Google-Smtp-Source: AGHT+IGc1p1uZhJvcoetmCrdEIfGz0m87ummpGzx6yLA/1P1+ZuRj/39LdONnt3M7rF/pD26f8BZ8Ivd26e1UHnilW0= X-Received: by 2002:a05:6820:822:b0:5eb:5bc9:da6c with SMTP id 006d021491bc7-5ebeca49e31mr71388eaf.3.1729613783850; Tue, 22 Oct 2024 09:16:23 -0700 (PDT) MIME-Version: 1.0 References: <0e67ba23-2531-4ade-8dce-12873f46601c@cloud.gatewaynet.com> In-Reply-To: <0e67ba23-2531-4ade-8dce-12873f46601c@cloud.gatewaynet.com> From: Dominique Devienne Date: Tue, 22 Oct 2024 18:16:12 +0200 Message-ID: Subject: Re: Regression in Postgres 17? To: Achilleas Mantzios Cc: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Oct 22, 2024 at 6:03=E2=80=AFPM Achilleas Mantzios wrote: > =CE=A3=CF=84=CE=B9=CF=82 22/10/24 18:54, =CE=BF/=CE=B7 Colin 't Hart =CE= =AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > This works in Postgres 15: > Do this instead : > create function json_test(out value text, out jsonparam jsonb) ... > apparently json is a reserved word (now) and won't be accepted as functio= n parameter name. Or properly double-quote the param name: ``` ddevienne=3D> show server_version; server_version ---------------- 17.0 (1 row) ^ ddevienne=3D> create function json_test(out value text, out "json" jsonb) returns record language sql as 'select null::text, null::jsonb;'; CREATE FUNCTION ddevienne=3D> select * from json_test(); value | json -------+------ | (1 row) ```