pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()

pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()

pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()

pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()

pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()

pgsql: Fix race condition in gettext() initialization in libpq and ecpg

2022-01-21 Thread Tom Lane
Fix race condition in gettext() initialization in libpq and ecpglib. In libpq and ecpglib, multiple threads can concurrently enter the initialization logic for message localization. Since we set the its-done flag before actually doing the work, it'd be possible for some threads to reach gettext()