Re: inquiry - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: inquiry
Date
Msg-id 200303261520.h2QFKQK06569@candle.pha.pa.us
Whole thread Raw
In response to inquiry  ("Jinqiang Han" <postgresql@db.pku.edu.cn>)
List 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_list��Ԫ��parsetree){ //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_list�е�ÿ��querytree){ //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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: A bad behavior under autocommit off mode
Next
From: Bruce Momjian
Date:
Subject: Re: updateable cursors & visibility