Re: inquiry

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jinqiang Han <postgresql(at)db(dot)pku(dot)edu(dot)cn>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: inquiry
Date: 2003-03-26 15:20:26
Message-ID: 200303261520.h2QFKQK06569@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jinqiang Han wrote:
> hello,
>
> I have read the source code of postgres.c. Two strang things I can't understand.
> Souce code of Postgres.c:
> ..
> Foreach(parsetree_listparsetree){ //In what situation here will be many parsetrees
>

You can send multiple queries in a single string, "SELECT;SELECT".

> (List *)querytree_list = pg_analyze_and_rewrite(parsetree);
> foreach(querytree_listquerytree){ //In what situation here will be many querytrees

A RULE may have additional queries to fire.

>
> Who can tell me the reason?
> Thank you very much
>
> Jinqiang Han
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

  • inquiry at 2003-03-26 09:19:38 from Jinqiang Han

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-03-26 16:01:26 Re: updateable cursors & visibility
Previous Message Bruce Momjian 2003-03-26 15:04:13 Re: A bad behavior under autocommit off mode