pgsql: pgrowlocks: Reject unlogged and temp tables during recovery
pgsql: pgrowlocks: Reject unlogged and temp tables during recovery
От:
Michael Paquier <michael@paquier.xyz>
Дата:
pgrowlocks: Reject unlogged and temp tables during recovery Unlogged and temporary tables have no data on a standby, and attempting to use pgrowlocks() in this case led to this failure: ERROR: could not open file "base/MMM/NNN": No such file or directory These cases are now checked, failing with a proper failure. Temporary tables from other sessions cannot be accessed, as the streaming read APIs prevent that already. Author: Jim Jones Reported-by: Zsolt Parragi Reviewed-by: Kirill Reshke Reviewed-by: Michael Paquier Reviewed-by: Surya Poondla Discussion: https://postgr.es/m/82ba0876-6127-4770-b900-aa1bd52abfed@uni-muenster.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3c5a4dcaaa8d5bef429bd8143d1a6e9f92fa0b74 Modified Files -------------- contrib/pgrowlocks/pgrowlocks.c | 6 ++++++ 1 file changed, 6 insertions(+)