Re: pgbench stats per script & other stuff - Mailing list pgsql-hackers

From Andres Freund
Subject Re: pgbench stats per script & other stuff
Date
Msg-id 20150903091122.GA23957@awork2.anarazel.de
Whole thread Raw
In response to Re: pgbench stats per script & other stuff  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: pgbench stats per script & other stuff
List pgsql-hackers
On 2015-09-02 20:20:45 +0200, Fabien COELHO wrote:
> >>+static SQLScript sql_script[MAX_SCRIPTS];
> >>
> >>+static struct {
> >>+    char *name;   /* very short name for -b ...*/
> >>+    char *desc;   /* short description */
> >>+    char *script; /* actual pgbench script */
> >>+} builtin_script[]
> >
> >Can't we put these in the same array?
> 
> I do not understand.

Right now builtins and user defined scripts are stored in different data
structures. I'd rather see them in the same.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: BRIN INDEX value
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench stats per script & other stuff