Imagine tables a, b, c, d each with hundreds of columns.
As an example, I would like to write:
SELECT a.*, b.*, c.*, SUM(d.blah) FROM a, b, c, d WHERE <some join conditions> GROUP BY a.*, b.*, c.*
Instead of having to expand the "GROUP BY a.*, b.*, c.*" using the explicit column names of all the column in a, b, and c.
This becomes a maintenance nightmare as you add/drop column in these tables...
Thanks for any advice on how to handle this, -Jon
PS: I'm using postgresql v7.4.x
-- -**-*-*---*-*---*-*---*-----*-*-----*---*-*---*-----*-----*-*-----*--- Jon Lapham <lapham@xxxxxxxxx> Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--*----*-------*------------*--------------------*---------------
---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend