pgsql: In libpq for Windows, call WSAStartup once and WSACleanup not at

2020-10-17 Thread Tom Lane
In libpq for Windows, call WSAStartup once and WSACleanup not at all. The Windows documentation insists that every WSAStartup call should have a matching WSACleanup call. However, if that ever had actual relevance, it wasn't in this century. Every remotely-modern Windows kernel is capable of cle

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz

pgsql: Doc: caution against misuse of 'now' and related datetime litera

2020-10-17 Thread Tom Lane
Doc: caution against misuse of 'now' and related datetime literals. Section 8.5.1.4, which defines these literals, made only a vague reference to the fact that they might be evaluated too soon to be safe in non-interactive contexts. Provide a more explicit caution against misuse. Also, generaliz