Re: Printing PostgreSQL reports

From: "Mitch Vincent" <mitch(at)venux(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Printing PostgreSQL reports
Date: 2001-02-20 20:06:34
Message-ID: 05c601c09b78$9ff813b0$0200000a@windows
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I wrote a paging system that I use for all my applications that take full
advantage of PostgreSQL's killer LIMIT and OFFSET features. I'd suggest you
do the same, it's worked very well for me so far..

It's written in PHP and customized on a per application basis so the actual
source code wouldn't do anyone much good but the basic idea is to group
results X at a time, then use LIMIT X to only grab the first X records from
a result set. Then on the next page you say LIMIT X OFFSET X (in this
example it's more of a <Next 10 results> type of thing).. You can get
creative and do pretty meat paging systems with PG.

Good luck!

-Mitch

----- Original Message -----
From: "Richard Ehrlich" <richard(at)techspt(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, February 20, 2001 3:00 PM
Subject: Printing PostgreSQL reports

> I can post info to PostgreSQL from a webform via JSP, and I can post
> reports from PostgreSQL to a webpage. Can anyone tell me how I might
format
> a PostgreSQL report to a web page so that it will print discrete,
sequenced
> pages?
>
> Thanks,
> Richard Ehrlich
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alfonso Peniche 2001-02-20 20:07:48 Re: INSERT INTO problem
Previous Message Richard Ehrlich 2001-02-20 20:00:37 Printing PostgreSQL reports