aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorKevin Grittner <kgrittn@postgresql.org>2013-04-24 08:39:06 -0500
committerKevin Grittner <kgrittn@postgresql.org>2013-04-24 08:39:06 -0500
commit63e20041a2b5f98fdfe6b32af9550ca54ff8649f (patch)
treea27aca8c65fc26fb462b56adb0b5e16cc1bcd473 /src/backend/executor
parent2317a63328cd9d1c22d02218c6959f340b63d98f (diff)
downloadpostgresql-63e20041a2b5f98fdfe6b32af9550ca54ff8649f.tar.gz
postgresql-63e20041a2b5f98fdfe6b32af9550ca54ff8649f.zip
Fix assertion failure for REFRESH MATERIALIZED VIEW in PL.
This was due to incomplete implementation of rowcount reporting for RMV, which was due to initial waffling on whether it should be provided. It seems unlikely to be a useful or universally available number as more sophisticated techniques for maintaining matviews are added, so remove the partial support rather than completing it. Per report of Jeevan Chalke, but with a different fix
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/spi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index cc7764dba26..de8d59a8cdc 100644
--- a/src/backend/executor/spi.c
+++ b/src/backend/executor/spi.c
@@ -2122,13 +2122,6 @@ _SPI_execute_plan(SPIPlanPtr plan, ParamListInfo paramLI,
if (((CreateTableAsStmt *) stmt)->is_select_into)
res = SPI_OK_SELINTO;
}
- else if (IsA(stmt, RefreshMatViewStmt))
- {
- Assert(strncmp(completionTag,
- "REFRESH MATERIALIZED VIEW ", 23) == 0);
- _SPI_current->processed = strtoul(completionTag + 23,
- NULL, 10);
- }
else if (IsA(stmt, CopyStmt))
{
Assert(strncmp(completionTag, "COPY ", 5) == 0);