pgsql: Remove duplicate check added by commit b2a5545bd6.

2020-06-26 Thread Amit Kapila
Remove duplicate check added by commit b2a5545bd6. As this doesn't cause any harm so we decided to this clean up in HEAD only. Author: Ádám Balogh Discussion: https://postgr.es/m/vi1pr0702mb36631bd67559461afde1feee81...@vi1pr0702mb3663.eurprd07.prod.outlook.com Branch -- master Details ---

pgsql: Persist slot invalidation correctly

2020-06-26 Thread Alvaro Herrera
Persist slot invalidation correctly We failed to save slot to disk after invalidating it, so the state was lost in case of server restart or crash. Fix by marking it dirty and flushing. Also, if the slot is known invalidated we don't need to reason about the LSN at all -- it's known invalidated.

pgsql: Persist slot invalidation correctly

2020-06-26 Thread Alvaro Herrera
Persist slot invalidation correctly We failed to save slot to disk after invalidating it, so the state was lost in case of server restart or crash. Fix by marking it dirty and flushing. Also, if the slot is known invalidated we don't need to reason about the LSN at all -- it's known invalidated.

pgsql: doc: PG 13 relnotes; remove FOREIGN keyword item and clarify

2020-06-26 Thread Bruce Momjian
doc: PG 13 relnotes; remove FOREIGN keyword item and clarify Clarify --include-foreign-data option addition. Reported-by: Masahiko Sawada, Alvaro Herrera Discussion: https://postgr.es/m/ca+fd4k62hytce8vremgm6y+1c24qbgcksxvoah5ke8pby+6...@mail.gmail.com Backpatch-through: 13 only Branch

pgsql: Doc: explain that "timestamp - timestamp" applies justify_hours(

2020-06-26 Thread Tom Lane
Doc: explain that "timestamp - timestamp" applies justify_hours(). Back-patch to v13; before that, there's not really space for this kind of detail. Discussion: https://postgr.es/m/[email protected] Branch -- REL_13_STABLE Details --- https://git.postgresql.or

pgsql: Doc: explain that "timestamp - timestamp" applies justify_hours(

2020-06-26 Thread Tom Lane
Doc: explain that "timestamp - timestamp" applies justify_hours(). Back-patch to v13; before that, there's not really space for this kind of detail. Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/co

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-26 Thread Amit Kapila
On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut wrote: > > Enable Unix-domain sockets support on Windows > + +/* + * Windows headers don't define this structure, but you can define it yourself + * to use the functionality. + */ +struct sockaddr_un +{ + unsigned short sun_family; + char sun_p