Re: [PATCHES] Approximate count(*) - Mailing list pgsql-docs

From Jim C. Nasby
Subject Re: [PATCHES] Approximate count(*)
Date
Msg-id 20050327212415.GQ51784@decibel.org
Whole thread Raw
In response to Re: [PATCHES] Approximate count(*)  (Josh Berkus <josh@agliodbs.com>)
List pgsql-docs
Josh, David-

Do you think it's worth adding a function that would do the select for
you? IE: tuplecount('schema', 'tablename')?

On Thu, Mar 24, 2005 at 07:19:00PM -0800, Josh Berkus wrote:
> David,
>
> If Jim and I finish our work for 8.1, then you'll be able to do:
>
> SELECT approx_records FROM pg_sysviews.pg_tables WHERE schema_name = 'schema'
> AND table_name = 'table'
>
> But the same caveats will apply.
>
> --
> Josh Berkus
> Aglio Database Solutions
> San Francisco
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
Jim C. Nasby, Database Consultant               decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-docs by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Version information in docs
Next
From: Josh Berkus
Date:
Subject: Re: Missing doc on expression format for ALTER TABLE