Combine options for RangeVarGetRelidExtended() into a flags argument.
Andres Freund <andres@anarazel.de>
Combine options for RangeVarGetRelidExtended() into a flags argument. A followup patch will add a SKIP_LOCKED option. To avoid introducing evermore arguments, breaking existing callers each time, introduce a flags argument. This'll no doubt break a few external users... Also change the MISSING_OK behaviour so a DEBUG1 debug message is emitted when a relation is not found. Author: Nathan Bossart Reviewed-By: Michael Paquier and Andres Freund Discussion: https://postgr.es/m/20180306005349.b65whmvj7z6hbe2y@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/namespace.c | modified | +12 −8 |
| src/backend/commands/cluster.c | modified | +1 −1 |
| src/backend/commands/indexcmds.c | modified | +2 −2 |
| src/backend/commands/lockcmds.c | modified | +2 −2 |
| src/backend/commands/matview.c | modified | +1 −1 |
| src/backend/commands/policy.c | modified | +3 −3 |
| src/backend/commands/sequence.c | modified | +1 −2 |
| src/backend/commands/tablecmds.c | modified | +8 −8 |
| src/backend/commands/trigger.c | modified | +1 −1 |
| src/backend/rewrite/rewriteDefine.c | modified | +1 −1 |
| src/backend/tcop/utility.c | modified | +1 −1 |
| src/include/catalog/namespace.h | modified | +12 −2 |
Discussion
- Change RangeVarGetRelidExtended() to take flags argument? 14 messages · 2018-03-06 → 2018-04-02