Search Postgresql Archives

Re: Temporary Tables and Web Application

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

 



In response to Tim Tassonis <timtas@xxxxxxxx>:
> 
> Bill Moran wrote:
> > In response to Tim Tassonis <timtas@xxxxxxxx>:
> > 
> >>
> >> Now, with apache/php in a mpm environment, I have no guarantee that a 
> >> user will get the same postgresql session for a subsequent request, thus 
> >> he will not see the temporary table.
> >>
> >> Is there a way to create temporary tables in another way, so they are 
> >> visible between sessions, or do I need to create real tables for my 
> >> purpose? And is the perfomance penalty big for real tables, as they have 
> >> been written to disk/read from disk?
> > 
> > Build a framework that creates the tables in a special schema, and then
> > can access them through any session.  Use some method to generate unique
> > table names and store the names in the HTTP session.  Create some sort
> > of garbage collection routines that removes tables when they're no longer
> > needed.
> > 
> > The details of exactly how you pull this off are going to depend heavily
> > on the rest of your application architecture.
> > 
> 
> What you describe is what I referred to as "create real tables". I've 
> done that and it works, but I wondered if there's something similar 
> built in postgres apart from classical temporary tables.

Not that I'm aware of.

If you keep the mailing list in the CC, others can answer as well.

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@xxxxxxxxxxxxxxxxxxxxxxx
Phone: 412-422-3463x4023


[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