Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123656 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 158F01A009C for ; Mon, 17 Jun 2024 17:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718645005; bh=p+pQUc8oe9p3k2aGBXq6ASURhOiYELPKZWFUgUOxX5M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UcJC7St42cdvn6ofQtMoiLbqk03HkhgH6pG5YItj3nMOTFQvyLkJpMw1bKqFPUfU8 rM8YlU+L7NAOSXM5DJm8hvxRvafjbKEnS4S39iyb/aM6AMYHhdt5a2sJkzX+Zdh6Z5 F0Oi+Rk9TVt8jgOrIiAtdO0GtXZoLt2NAH9vLiY2n2ajIC5HqPeFIt52qaS6MpHC/A 9EC9lM+8N/XIy1XGq6rPe0nYsU1ZguF2EypY54ITokhNrbVwealyKD3hvLG3o7KyLl CKMrH6OSDqr8df1TX0VV3DhRZt4g/f5i8ucnttf04W6WzDfAiMlfDFTmYlXh2f0nFq 6pctcB6mPyLRg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0F228180856 for ; Mon, 17 Jun 2024 17:23:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: **** X-Spam-Status: No, score=4.7 required=5.0 tests=BAYES_50,DMARC_NONE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from 2.mo560.mail-out.ovh.net (2.mo560.mail-out.ovh.net [188.165.53.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 Jun 2024 17:23:22 +0000 (UTC) Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.2.97]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 4W2xX050HDz1DNh for ; Mon, 17 Jun 2024 17:22:08 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-c8nrl (unknown [10.110.96.170]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 4A8301FD35 for ; Mon, 17 Jun 2024 17:22:08 +0000 (UTC) Received: from php.earth ([37.59.142.106]) by ghost-submission-6684bf9d7b-c8nrl with ESMTPSA id EmWpCcBwcGYUVwEAxPf8Qw (envelope-from ) for ; Mon, 17 Jun 2024 17:22:08 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-106R00684d49e21-cb7a-4e15-b11e-6d0d66daf441, 0FBEC8C174C8E19A62C41DF34FD46B085DDF0BC5) smtp.auth=peter.kokot@php.earth X-OVh-ClientIp:209.85.221.170 Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-4eb02c0c851so1521022e0c.0 for ; Mon, 17 Jun 2024 10:22:08 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWE7NoHRnF/k/e990M4NLN8CrvPWinDb6C2slKlWYOjIcSWfiSgVfSHhQ5fQfFI3GOZYoiRkX4QFF4PsPFAUcXcYUm5vDv8lQ== X-Gm-Message-State: AOJu0Yxv3sgTeIHSyQnwLh/EWBP+0Jn+o2mFh5h9Hk1ZsADYrlBpnJwr GTOtY/N23fjzEO4rnwh5WQx3NkhLx5xo1WjOJ5XQCE8urM6Tu6DxxTjmibRoJxl/Tm9TG65qeE5 41OHwin85QPshPnsw9uh36/wz0LA= X-Google-Smtp-Source: AGHT+IEVNgbjz6zbbfVF1a3H1xtifsn7zHV/F9OxQy1he9S4KkTr2hH3cIPWfM8iLp9FXh+Ymd9MMKhhQBmU3FydMnQ= X-Received: by 2002:a05:6122:999:b0:4d3:3846:73bb with SMTP id 71dfb90a1353d-4ee3f067b4fmr9693978e0c.7.1718644927116; Mon, 17 Jun 2024 10:22:07 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <201e1928-7a46-4586-9d24-b535c0a8cdfb@processus.org> <5cc18d25-4c5a-44da-b778-c7e89792a93a@beccati.com> In-Reply-To: <5cc18d25-4c5a-44da-b778-c7e89792a93a@beccati.com> Date: Mon, 17 Jun 2024 19:21:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PHP-DEV] Bumping minimum PostgreSQL version to 10.0 To: Matteo Beccati Cc: Peter Kokot , Pierre , Internals Content-Type: text/plain; charset="UTF-8" X-Ovh-Tracer-Id: 8124493730749932038 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrfedvhedgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepgghfjgfhfffkuffvvegtsehttdertddttdejnecuhfhrohhmpefrvghtvghrucfmohhkohhtuceophgvthhksehphhhprdhnvghtqeenucggtffrrghtthgvrhhnpeeftedvveekhfduudejjeffueffteeuleehheetteehudefhfeuiedtteeghfekteenucffohhmrghinhepsggvtggtrghtihdrtghomhenucfkphepuddvjedrtddrtddruddpvddtledrkeehrddvvddurddujedtpdefjedrheelrddugedvrddutdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehpvghtkhesphhhphdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvghtpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth From: petk@php.net (Peter Kokot) On Mon, 17 Jun 2024 at 19:16, Matteo Beccati wrote: > > Hi, > > Il 17/06/2024 19:03, Peter Kokot ha scritto: > > On Mon, 17 Jun 2024 at 18:58, Pierre wrote: > >> > >> Would id affect the possibility to use an old PostgreSQL (eg. 9.6) via > >> PHP (PDO or ext-pgsql) ? > >> > >> If so, it might be a dangerous move for oldest projects, you sometime > >> can upgrade PHP and your software easily, but can't upgrade the database > >> server. > >> > >> Regards, > >> > >> Pierre > > > > Yes, after such version increase it would affect PDO PGSQL extension > > also and you'd need to upgrade the database. In the PR there is also > > 9.6 mentioned as one version earlier as an alternative. I'm fine with > > 9.6 also but PHP-8.4-dev code will need to be adjusted further. > > Please correct me if I'm wrong, but the basic capability of connecting > to an older version shouldn't be compromised. It's only the build > process requiring libpq > 10. > > > Cheers > -- > Matteo Beccati > > Development & Consulting - http://www.beccati.com/ When building for a certain PostgreSQL version, the pq library gets linked to the extension and then this PostgreSQL version needs to be used, yes. If you build for 10.0, then you need to use that exact version. Linux packages have this resolved by dependencies on the packages so when you install the extension it will work for that distribution PostgreSQL package.