Redundant error messages in policy.c

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Redundant error messages in policy.c
Date: 2015-07-06 21:20:26
Message-ID: CA+mi_8ai2avswJM8dEA4s1=2kHnWoZfkpXym20vqfzA9oQPviQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
policy-messages.patch text/x-patch 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-07-06 21:21:12 Missing extension locks in the nbtree code
Previous Message Corey Huinker 2015-07-06 20:42:23 Re: dblink: add polymorphic functions.