Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Peter Geoghegan <pg(at)heroku(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Subject: Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0
Date: 2015-04-23 16:02:51
Message-ID: 553917AB.8030007@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 04/20/2015 07:37 AM, Peter Geoghegan wrote:
>
> if (wco->commandType == CMD_INSERT)
> command = "INSERT-applicable ";
> else if (wco->commandType == CMD_UPDATE)
> command = "UPDATE-applicable ";
> else if (wco->commandType == CMD_DELETE)
> command = "DELETE-applicable ";
> else if (wco->commandType == CMD_SELECT)
> command = "SELECT-applicable ";
>
> ereport(ERROR,
> (errcode(ERRCODE_WITH_CHECK_OPTION_VIOLATION),
> errmsg("new row violates %sWITH CHECK OPTION %sfor \"%s\"",
> command ? command : "",
> wco->secBarrier ? "(originally security barrier) ":"",
> wco->viewname),
> val_desc ? errdetail("Failing row contains %s.", val_desc) :
> 0));

That code in ExecWithCheckOptions is not translatable. See style guide:
http://www.postgresql.org/docs/devel/static/nls-programmer.html#NLS-GUIDELINES

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2015-04-23 16:06:37 Re: Freeze avoidance of very large table.
Previous Message Andres Freund 2015-04-23 16:01:08 Re: tablespaces inside $PGDATA considered harmful