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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add missing error code to "cannot attach index ..." error.
Date: 2020-05-28 10:29:51
Message-ID: E1jeFnL-0003xQ-01@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b1c61e8b8f98f4a1c42856819b6dea600669f47

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

Browse pgsql-committers by date

  From Date Subject
Next Message Joe Conway 2020-05-28 17:20:13 pgsql: Add CHECK_FOR_INTERRUPTS() to the repeat() function
Previous Message Heikki Linnakangas 2020-05-28 10:29:50 pgsql: Fix typo in test comment.