pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's

pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's

pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's

pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's

pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's

pgsql: Print the correct aliases for DML target tables in ruleutils.

2023-02-17 Thread Tom Lane
Print the correct aliases for DML target tables in ruleutils. ruleutils.c blindly printed the user-given alias (or nothing if there hadn't been one) for the target table of INSERT/UPDATE/DELETE queries. That works a large percentage of the time, but not always: for queries appearing in WITH, it's