| From: | Randolf Richardson <rr(at)8x(dot)ca> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: *sigh* |
| Date: | 2003-12-12 19:43:55 |
| Message-ID: | Xns944F753D7F3C5rr8xca@200.46.204.72 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
"markir(at)paradise(dot)net(dot)nz (Mark Kirkwood)" wrote in
comp.databases.postgresql.hackers:
[sNip]
> How about:
>
> Implement a function "estimated_count" that can be used instead of
> "count". It could use something like the algorithm in
> src/backend/commands/analyze.c to get a reasonably accurate psuedo count
> quickly.
>
> The advantage of this approach is that "count" still means (exact)count
> (for your xact snapshot anyway). Then the situation becomes:
>
> Want a fast count? - use estimated_count(*)
> Want an exact count - use count(*)
I think this is an excellent solution.
--
Randolf Richardson - rr(at)8x(dot)ca
Vancouver, British Columbia, Canada
Please do not eMail me directly when responding
to my postings in the newsgroups.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2003-12-12 19:51:06 | Re: Resurrecting pg_upgrade |
| Previous Message | Randolf Richardson | 2003-12-12 19:42:23 | Re: *sigh* |