pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix out-of-bound read in gtsvector_picksplit()

2023-09-03 Thread Michael Paquier
Fix out-of-bound read in gtsvector_picksplit() This could lead to an imprecise choice when splitting an index page of a GiST index on a tsvector, deciding which entries should remain on the old page and which entries should move to a new page. This is wrong since tsearch2 has been moved into core

pgsql: Fix typo in decode.c.

2023-09-03 Thread Amit Kapila
Fix typo in decode.c. Author: Hou Zhijie Discussion: http://postgr.es/m/os0pr01mb57162dfffcfcda2e4b95899394...@os0pr01mb5716.jpnprd01.prod.outlook.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/e70ed4b1b87d22b47955c2bdee567ef8424e6df8 Modified Files -

pgsql: Fix handling of shared statistics with dropped databases

2023-09-03 Thread Michael Paquier
Fix handling of shared statistics with dropped databases Dropping a database while a connection is attempted on it was able to lead to the presence of valid database entries in shared statistics. The issue is that MyDatabaseId was getting set too early than it should, as, if the connection attempt

pgsql: Fix handling of shared statistics with dropped databases

2023-09-03 Thread Michael Paquier
Fix handling of shared statistics with dropped databases Dropping a database while a connection is attempted on it was able to lead to the presence of valid database entries in shared statistics. The issue is that MyDatabaseId was getting set too early than it should, as, if the connection attempt

pgsql: Fix handling of shared statistics with dropped databases

2023-09-03 Thread Michael Paquier
Fix handling of shared statistics with dropped databases Dropping a database while a connection is attempted on it was able to lead to the presence of valid database entries in shared statistics. The issue is that MyDatabaseId was getting set too early than it should, as, if the connection attempt