Relatively simple question about getting attributes from the where clause - Mailing list pgsql-hackers

From tjlee0909@berkeley.edu
Subject Relatively simple question about getting attributes from the where clause
Date
Msg-id 59868.136.152.171.59.1210313292.squirrel@calmail.berkeley.edu
Whole thread Raw
List pgsql-hackers
Hi guys, I am new to postgres hacking, and I have the following question.
Say that someone executes a query:

SELECT * FROM user u, logins l WHERE u.id = l.id
(assume I have tables user, and logins, with id fields).

After this query has been parsed and created into a plan tree, how can I
get the char* form of the attribute name on which my WHERE clause searches
on (in this case, user.id and logins.id)?

Thanks a bunch guys-TJ





pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [0/4] Proposal of SE-PostgreSQL patches
Next
From: Hannu Krosing
Date:
Subject: Re: Auto-updated fields