| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Scott Miller" <smiller(at)duels(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Feature request |
| Date: | 2008-05-03 19:49:58 |
| Message-ID: | 19988.1209844198@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
"Scott Miller" <smiller(at)duels(dot)com> writes:
> One problem I've had in development recently is the inability to get the
> aliased name of a table from a query. We're using a PHP framework for
> querying, which internally uses pg_field_name to retrieve the select list
> field name, which is great. There is alwo pg_table_name, to retrieve the
> table the field originated from. The problem is that this returns the name
> of the table, unaliased. If a query does a self join, you can't retrieve a
> distinguishing table alias name for that field.
Supporting this would require a protocol change (to allow an additional
field in the result description message). So don't hold your breath :-(
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruno Wolff III | 2008-05-03 20:51:29 | Interesting comments about fsync on Linux |
| Previous Message | Tom Lane | 2008-05-03 19:46:46 | Re: custom C function problem |