Re: add modulo (%) operator to pgbench

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: add modulo (%) operator to pgbench
Date: 2015-03-02 22:41:28
Message-ID: alpine.DEB.2.10.1503022318420.8139@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello Robert,

> Done.

Great!

> I removed some of the new error-reporting stuff because (1) I wasn't
> sure it was right

Hmmm. Although I'm not sure it was right, I'm sure that not enough error
reporting is too rough:

sh> ./pgbench -f bad.sql
syntax error at column 25
set: parse error

> and (2) it touched more places than just the ones directly relevant to
> the patch.

It just tried to report errors consistently from all places.

> I think those things can be resubmitted as a separate patch,

Yep, I'll do that.

> but I'd like to have a more robust discussion about what we want the
> error reporting to look like rather than just sliding it into this
> patch.

As an input, I suggest that the error reporting feature should provide a
clue about where the issue is, including a line number and possibly the
offending line. Not sure what else is needed.

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2015-03-02 22:54:22 Re: alter user/role CURRENT_USER
Previous Message Jim Nasby 2015-03-02 22:32:49 Re: plpgsql versus domains