Redundant error messages in policy.c - Mailing list pgsql-hackers

From Daniele Varrazzo
Subject Redundant error messages in policy.c
Date
Msg-id CA+mi_8ai2avswJM8dEA4s1=2kHnWoZfkpXym20vqfzA9oQPviQ@mail.gmail.com
Whole thread Raw
Responses Re: Redundant error messages in policy.c
List pgsql-hackers
There are 5 different strings (one has a whitespace error), they could
be 2. Patch attached.

postgresql/src/backend$ grep errmsg commands/policy.c | grep policy |
sed 's/^ *//'
 errmsg("policy \"%s\" for relation \"%s\" already exists",
 errmsg("policy \"%s\" on table \"%s\" does not exist",
 errmsg("policy \"%s\" for table \"%s\" already exists",
 errmsg("policy \"%s\" for table \"%s\" does not exist",
 errmsg("policy \"%s\" for table  \"%s\" does not exist",

-- Daniele

Attachment

pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: dblink: add polymorphic functions.
Next
From: Andres Freund
Date:
Subject: Missing extension locks in the nbtree code