Search Postgresql Archives

Re: Group By and wildcards...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon Lapham wrote:

Ugh.

Since I do not want to have to re-write all my aggregate function containing queries upon modifications to the table definitions (and I do not want to write multi-thousand character long SELECT statements), maybe it is easier to use a temp table intermediary?


Ugly... ugly... any other ideas on how to do this? My table definitions LITERALLY have hundreds of columns, and I need access to them all.


How about using a view? Create a view that contains only the ID columns, and then a second view encorporating the first view which joins to the appropriate tables and fetches the columns you want in the output of your query.


Just a thought.


--

Russ.

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux