in reply to Re: Excel automatically pulling data from Perl?
in thread Excel automatically pulling data from Perl?
But that said, views are an alternative to consider. Unfortunately I've already encountered cases where PostgreSQL chooses bad query plans, and so I need to create a temporary table then query it. That is not something that I can do in a view. I've also encountered cases where it is easier to do some simple calculations outside of the database. (Example: what is the spread from one event to another in months? The catch is that if the first event happened Jan 31, and the second one Feb 2, the spread is 1 month. That kind of date arithmetic is very messy in SQL.)
In fact both of these happened on the very data set that I'd like to be able to pull into Excel. :-(
Now there is another workaround, and that is to create stored procedures in the database and select from that. I have reasons for not doing that as well, but if I can't make an intermediate layer work then I'd seriously consider going there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Excel automatically pulling data from Perl?
by jbert (Priest) on Jun 28, 2007 at 15:54 UTC | |
by tilly (Archbishop) on Jun 29, 2007 at 00:52 UTC | |
by jbert (Priest) on Jun 29, 2007 at 06:07 UTC | |
by tilly (Archbishop) on Jun 29, 2007 at 16:54 UTC | |
by jbert (Priest) on Jul 01, 2007 at 16:45 UTC | |
|