Re: New Object Access Type hooks
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Thomas Munro <thomas.munro@gmail.com>,
PostgreSQL-development <pgsql-hackers@postgresql.org>,
Joshua Brindle <joshua.brindle@crunchydata.com>,
Robert Haas <robertmhaas@gmail.com>,
Andrew Dunstan <andrew@dunslane.net>, Jeff Davis <pgsql@j-davis.com>,
Joe Conway <joe@crunchydata.com>
Date: 2022-04-04T20:47:04Z
Lists: pgsql-hackers
Mark Dilger <mark.dilger@enterprisedb.com> writes: >> On Apr 4, 2022, at 12:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> So scratch that. Maybe we'd better add "could not send data to server" >> to the regex? > If it fails in pqsecure_raw_write(), you get either "server closed the connection unexpectedly" or "could not send data to server". Do we need to support pgtls_write() or pg_GSS_write(), which have different error messages? Don't see why, since this test sets up a new cluster in which neither is enabled. > Is it possible that pgFlush will call pqSendSome which calls pqReadData before trying to write anything, and get back a "could not receive data from server" from pqsecure_raw_read()? Yeah, it's plausible to get a failure on either the write or read side depending on timing. Perhaps libpq should be trying harder to make those cases look alike, but this test is about server behavior not libpq behavior, so I'm inclined to just make it lax. regards, tom lane
Commits
-
Update some tests in 013_crash_restart.pl.
- 8803df4ea960 14.3 landed
- 7a43a1fc52d0 15.0 landed
-
Avoid freeing objects during json aggregate finalization
- 4eb979887968 15.0 cited
-
SQL/JSON constructors
- f4fb45d15c59 15.0 cited
-
Force NO_LOCALE / UTF8 for test_oat_hooks tests
- 7c51b7f7cc08 15.0 landed
-
Temporarily disable installcheck for test_oat_hooks module
- 5b29a9f77297 15.0 landed
-
Fix new Object Access hooks test
- f0206d99520e 15.0 landed
-
Add String object access hooks
- d11e84ea466b 15.0 landed
-
Add a test module for Object Access hooks
- 90efa2f5565d 15.0 landed