mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Make stxstattarget nullable
To match attstattarget change (commit 4f622503d6
). The logic inside
CreateStatistics() is clarified a bit compared to that previous patch,
and so here we also update ATExecSetStatistics() to match.
Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/4da8d211-d54d-44b9-9847-f2a9f1184c76@eisentraut.org
This commit is contained in:
@@ -4610,7 +4610,7 @@ stats_param: ColId
|
||||
*****************************************************************************/
|
||||
|
||||
AlterStatsStmt:
|
||||
ALTER STATISTICS any_name SET STATISTICS SignedIconst
|
||||
ALTER STATISTICS any_name SET STATISTICS set_statistics_value
|
||||
{
|
||||
AlterStatsStmt *n = makeNode(AlterStatsStmt);
|
||||
|
||||
@@ -4619,7 +4619,7 @@ AlterStatsStmt:
|
||||
n->stxstattarget = $6;
|
||||
$$ = (Node *) n;
|
||||
}
|
||||
| ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS SignedIconst
|
||||
| ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS set_statistics_value
|
||||
{
|
||||
AlterStatsStmt *n = makeNode(AlterStatsStmt);
|
||||
|
||||
|
Reference in New Issue
Block a user