pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disallow COPY FREEZE on partitioned tables 3+ messages / 1 participants [nested] [flat]
* pgsql: Disallow COPY FREEZE on partitioned tables @ 2018-11-19 14:17 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2018-11-19 14:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow COPY FREEZE on partitioned tables This didn't actually work: COPY would fail to flush the right files, and instead would try to flush a non-existing file, causing the whole transaction to fail. Cope by raising an error as soon as the command is sent instead, to avoid a nasty later surprise. Of course, it would be much better to make it work, but we don't have a patch for that yet, and we don't know if we'll want to backpatch one when we do. Reported-by: Tomas Vondra Author: David Rowley Reviewed-by: Amit Langote, Steve Singer, Tomas Vondra Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5c9a5513a3967367e5fcc9237bc4146f4b24b408 Modified Files -------------- doc/src/sgml/perform.sgml | 4 ++-- doc/src/sgml/ref/copy.sgml | 4 +++- src/backend/commands/copy.c | 29 +++++++++++++++++++++++++++-- src/test/regress/input/copy.source | 6 ++++++ src/test/regress/output/copy.source | 6 ++++++ 5 files changed, 44 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Disallow COPY FREEZE on partitioned tables @ 2018-11-19 14:17 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2018-11-19 14:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow COPY FREEZE on partitioned tables This didn't actually work: COPY would fail to flush the right files, and instead would try to flush a non-existing file, causing the whole transaction to fail. Cope by raising an error as soon as the command is sent instead, to avoid a nasty later surprise. Of course, it would be much better to make it work, but we don't have a patch for that yet, and we don't know if we'll want to backpatch one when we do. Reported-by: Tomas Vondra Author: David Rowley Reviewed-by: Amit Langote, Steve Singer, Tomas Vondra Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/85efd1a04175951a97b087908121403e4cf4ef7a Modified Files -------------- doc/src/sgml/perform.sgml | 4 ++-- doc/src/sgml/ref/copy.sgml | 4 +++- src/backend/commands/copy.c | 29 +++++++++++++++++++++++++++-- src/test/regress/input/copy.source | 29 +++++++++++++++++++++++++++++ src/test/regress/output/copy.source | 23 +++++++++++++++++++++++ 5 files changed, 84 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Disallow COPY FREEZE on partitioned tables @ 2018-11-19 14:17 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 3+ messages in thread From: Alvaro Herrera @ 2018-11-19 14:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Disallow COPY FREEZE on partitioned tables This didn't actually work: COPY would fail to flush the right files, and instead would try to flush a non-existing file, causing the whole transaction to fail. Cope by raising an error as soon as the command is sent instead, to avoid a nasty later surprise. Of course, it would be much better to make it work, but we don't have a patch for that yet, and we don't know if we'll want to backpatch one when we do. Reported-by: Tomas Vondra Author: David Rowley Reviewed-by: Amit Langote, Steve Singer, Tomas Vondra Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a4db7fe0f71463eb7256d3c42b7a582d3943d604 Modified Files -------------- doc/src/sgml/perform.sgml | 4 ++-- doc/src/sgml/ref/copy.sgml | 4 +++- src/backend/commands/copy.c | 29 +++++++++++++++++++++++++++-- src/test/regress/input/copy.source | 29 +++++++++++++++++++++++++++++ src/test/regress/output/copy.source | 23 +++++++++++++++++++++++ 5 files changed, 84 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-11-19 14:17 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-11-19 14:17 pgsql: Disallow COPY FREEZE on partitioned tables Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-11-19 14:17 pgsql: Disallow COPY FREEZE on partitioned tables Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-11-19 14:17 pgsql: Disallow COPY FREEZE on partitioned tables Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox