From: | "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at> |
---|---|
To: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>, "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
Cc: | <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Roadmap for FE/BE protocol redesign |
Date: | 2003-03-13 17:07:27 |
Message-ID: | 46C15C39FEB2C44BA555E356FBCD6FA4961F5B@m0114.s-mxs.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > > Does looking up by the catalog keys take no cost ?
> >
> > Obviously there is cost, but doing a lookup only on demand, has got to be
> > cheaper in the long run than including the entire column definition in the
> > message whether it's wanted or not?
>
> So if there are 100 fields, should we ask the backend
> the column name 100 times ?
Also doesn't the planner/executor already have all needed info available ?
Thus answering from prepare would be a lot cheaper than selecting the descriptor
after prepare (more network roundtrips, parse, plan and execute the descriptor lookup).
If this where at the protocol level, the client could flag what info is wanted,
and thus avoid all unwanted overhead.
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-03-13 17:12:46 | Re: SQL99 ARRAY support proposal |
Previous Message | Tom Lane | 2003-03-13 17:02:55 | Re: [SQL] What's wrong with this group by clause? |