Thread: pgsql: Add missing error code to "cannot attach index ..." error.

pgsql: Add missing error code to "cannot attach index ..." error.

From
Heikki Linnakangas
Date:
Add missing error code to "cannot attach index ..." error.

ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE was used in an ereport with the
same message but different errdetail a few lines earlier, so use that
here as well.

Backpatch-through: 11

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7b009944c2525fcf8ee35db135c4bc560eb208f2

Modified Files
--------------
src/backend/commands/tablecmds.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)