From: Tom Lane <tgl@sss.pgh.pa.us>
To: 范国腾 <fanguoteng@highgo.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Where to change the column width in RelOptInfo data
Date: Wed, 25 Jul 2018 10:35:31 -0400
Message-ID: <2093.1532529331@sss.pgh.pa.us> (raw)
In-Reply-To: <f372513e8bd843d6a424f951ea14dfa9@EX01.highgo.com>
References: <f372513e8bd843d6a424f951ea14dfa9@EX01.highgo.com>
=?gb2312?B?t7a5+sza?= <fanguoteng@highgo.com> writes:
> I use a postgres extension plugin pg_strom to generate the plan. I select one column ¡°avg(c_acctbal)¡± in the SQL, and the generated plan changes to select two column ¡°c_acctbal, c_phone¡±.
I think you'd be better off doing that sort of thing in the rewriter
somewhere. Wherever you tried to put it in the planner is clearly
too late.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, fanguoteng@highgo.com, pgsql-admin@lists.postgresql.org
Subject: Re: Where to change the column width in RelOptInfo data
In-Reply-To: <2093.1532529331@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox