| From: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
|---|---|
| To: | mail(at)bwe(dot)im |
| Cc: | PostgreSQL Bugs List <pgsql-bugs(at)postgresql(dot)org> |
| Subject: | Re: BUG #12379: pgbench should hint to pgbench -i |
| Date: | 2015-03-08 07:55:25 |
| Message-ID: | alpine.DEB.2.10.1503080851220.4406@sto |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
> $ pgbench bench -s 90000000 -j 1 -c 10
> ERROR: relation "pgbench_branches" does not exist
> LINE 1: select count(*) from pgbench_branches
>
> 11:51 MatheusOl$ bwe: You need to run `pgbench -i` first
>
> Why does the error message does not tell me this plainly? :)
Let us be nice to users. Attached is a very small patch which adds a
simple HINT on this initial failure, for submission to the next
commitfest.
sh> ./pgbench foo
ERROR: relation "pgbench_branches" does not exist
LINE 1: select count(*) from pgbench_branches
^
HINT: is "foo" the right database? did you initialize first (pgbench -i)?
--
Fabien.
| Attachment | Content-Type | Size |
|---|---|---|
| pgbench-hint-1.patch | text/x-diff | 490 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | mage | 2015-03-09 09:12:42 | BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump |
| Previous Message | Devrim Gündüz | 2015-03-07 23:00:15 | Re: BUG #12830: postgres-9.4 upgrade is missing PGPORT |