[HACKERS] It's possible to get pg_class oid from GETSTRUC macro?

2010-06-12 Thread Mohammad Heykal Abdillah
re "t_tableOid" and "(Form_pg_attribute) GETSTRUCT(ht_2)->attrelid" nothing match. My question is, how to get "oid" from pg_class? or is there any other solution you can suggest? Thank you. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hac

[HACKERS] What the function name to get the contents table/tuple ?

2010-06-01 Thread Mohammad Heykal Abdillah
function that i can use to get table content (tuple)? Thank You. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Is there anyway to get list of table name, before raw parser is analyze?

2010-05-30 Thread Mohammad Heykal Abdillah
scan the whole database to get relation name and attribut name, i cant implement it. By the way this is for my personal interest, so if you cant help that's ok. But if you can help, i realy realy appreciated it. Thank You. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Is there anyway to get list of table name, before raw parser is analyze?

2010-05-29 Thread Mohammad Heykal Abdillah
On Min, 2010-05-30 at 00:44 -0400, Andrew Dunstan wrote: > > Mohammad Heykal Abdillah wrote: > > Hi all, > > > > Right now i am trying to understand how SQL parser is work. > > > > My question is there anyway to get list of table name and its atri

[HACKERS] Is there anyway to get list of table name, before raw parser is analyze?

2010-05-29 Thread Mohammad Heykal Abdillah
oin" case where PostgreSQL can give query result that have unabigous attribut and match the right join key. Thank You. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
least now i have some hint :) Once again thank you. > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > English: http://www.sraoss.co.jp/index_en.php > Japanese: http://www.sraoss.co.jp -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) T

Re: [HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
On Kam, 2010-05-27 at 15:02 -0400, Robert Haas wrote: > On Thu, May 27, 2010 at 1:58 PM, Mohammad Heykal Abdillah > wrote: > > Now to the question, why my manualy constructed list was failed to > > execute? I was pretty sure that my list node was identical with yacc. > >

[HACKERS] Why my manualy constructed raw parser tree produce failed to execute?

2010-05-27 Thread Mohammad Heykal Abdillah
that not printed by GDB)? By the way in GBD i using "call pprint(node/list name)" to display my list. Thank You. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] "unexpected" query behaviour after i change parser code

2010-05-22 Thread Mohammad Heykal Abdillah
On Sab, 2010-05-22 at 14:42 -0400, Robert Haas wrote: > > Ok this my test result to "customer" and "item" table : > > - select id_item,name from item; > > --> failed, because there is "from clause" (failed like i expected) > > > > - select item.id_item, item.name; > > --> work, like i expected > >

[HACKERS] "unexpected" query behaviour after i change parser code

2010-05-22 Thread Mohammad Heykal Abdillah
All, Lately i have play with "parser"-part. I was try to make valid query command without using "FROM clause", so far it's work. I know this modification will make all query that using "FROM clause" failed, for example "/df" command. But normal or simple "select statement" so far is work. Now be

Re: [HACKERS] Why SELECT keyword on parser is written as SELECTME ?

2010-05-20 Thread Mohammad Heykal Abdillah
ng you changed in your copy. > Ah, you right!! Sorry for my mistake, after download new version and my version (8.3.7) again. There is no "selectme" keyword. It's seem in my previous copy i have made modification but i forgot to take note, since it never failed when compile

[HACKERS] Why SELECT keyword on parser is written as SELECTME ?

2010-05-20 Thread Mohammad Heykal Abdillah
tified as "selectme" (at src/backend/parser/keywords.c)? Whats it's the different between "select" and "selectme" ? Thank You. -- Mohammad Heykal Abdillah -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers