Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121908 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91990 invoked from network); 3 Dec 2023 12:40:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Dec 2023 12:40:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3B27A180038 for ; Sun, 3 Dec 2023 04:40:22 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 ; Sun, 3 Dec 2023 04:40:21 -0800 (PST) Received: from smtpclient.apple (softbank060067217005.bbtec.net [60.67.217.5]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id BEC27401E2; Sun, 3 Dec 2023 21:40:07 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1701607207; bh=Rjnl+cy5e5HoZwoNnlSdsFyqTZnIZCSG39uRS1YTVpA=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=Tc2lOtF1knQy9f6p9oEVFDRdj2fPmXQ+oZPEubzkr6ZBZIAcE4Q9ooIrKFJO4AJh4 ya8qCXZ51uT4LSi1W2hLX7ME6ZowcEntv3ndnmgyLC0SGNaPQPYqKIsL4xPDaBxsHl U5TFnNGyNrZoqMtFQ8xohnlBpEHonKOKQ8FVc9nI= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Sun, 3 Dec 2023 21:39:55 +0900 Message-ID: References: Cc: Eugene Sidelnyk , Deleu , Bruce Weirdan , php internals In-Reply-To: To: Kentaro Takeda X-Mailer: iPhone Mail (21B91) Subject: Re: [PHP-DEV] [PDO] 2 phase commit From: saki@sakiot.com (Saki Takamachi) Hi, > Do you have any ideas how to handle this case at the core level in the > regard of php lifecycle? I agree with Kentaro on this. This can be said to be a weakness of two-phase= commit itself, but I think it should be addressed in userland or user opera= tions. BTW, I said that I was thinking of implementing two-phase commit in pdo core= , but that may be a bit unreasonable. Perhaps because it is not standardized= in standard SQL, the method of implementing this function varies from datab= ase to database. The steps leading up to the final commit vary greatly depen= ding on the DB. Looking at the current implementation for each DB, it is possible to forcefu= lly create a method in the core, but this will break down when the DB specif= ications change in the future. Perhaps two-phase commit is a feature that should be implemented in pdo subc= lasses with "retaining the personality of the DB''. Regards. Saki=