pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Fix failure in WHERE CURRENT OF after rewinding the referenced c

2018-09-23 Thread Tom Lane
Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. In a case where we have multiple relation-scan nodes in a cursor plan, such as a scan of an inheritance tree, it's possible to fetch from a given scan node, then rewind the cursor and fetch some row from an earlier scan node.

pgsql: Doc: warn against using parallel restore with --load-via-partiti

2018-09-23 Thread Tom Lane
Doc: warn against using parallel restore with --load-via-partition-root. This isn't terribly safe, and making it so doesn't seem like a small project, so for the moment just warn against it. Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- http

pgsql: Doc: warn against using parallel restore with --load-via-partiti

2018-09-23 Thread Tom Lane
Doc: warn against using parallel restore with --load-via-partition-root. This isn't terribly safe, and making it so doesn't seem like a small project, so for the moment just warn against it. Discussion: https://postgr.es/m/[email protected] Branch -- REL_11_STABLE Details -

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p

pgsql: Initialize random() in bootstrap/stand-alone postgres and in ini

2018-09-23 Thread Noah Misch
Initialize random() in bootstrap/stand-alone postgres and in initdb. This removes a difference between the standard IsUnderPostmaster execution environment and that of --boot and --single. In a stand-alone backend, "SELECT random()" always started at the same seed. On a system capable of using p