a question about exec_simple_query()

From: 汪琦 <billywq(at)163(dot)com>
To: pgsql-hackers(at)postgresql(dot)org <pgsql-hackers(at)postgresql(dot)org>
Subject: a question about exec_simple_query()
Date: 2008-06-10 02:41:49
Message-ID: 484DEA19.04359E.25430@m5-81.163.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, everyone:

In functin exec_simple_query(), why we run a simple query wrapped in a portal.

For instance:

version 8.3.0 ,postgres.c, Line 908

/*
* Create unnamed portal to run the query or queries in. If there
* already is one, silently drop it.
*/
portal = CreatePortal("", true, true);

......


In other words, what's the benifit we use a portal to run a simple query?

Thanks for your help! :)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2008-06-10 02:48:33 Re: Core team statement on replication in PostgreSQL
Previous Message Tom Lane 2008-06-10 01:55:31 Re: Core team statement on replication in PostgreSQL