Re: [PATCHES] Approximate count(*)

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: [PATCHES] Approximate count(*)
Date: 2005-03-27 21:24:15
Message-ID: 20050327212415.GQ51784@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches

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(at)decibel(dot)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?"

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Josh Berkus 2005-03-28 01:11:43 Re: Missing doc on expression format for ALTER TABLE
Previous Message Jim C. Nasby 2005-03-27 21:20:50 Version information in docs

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-03-28 05:06:37 Re: contrib dbf2sql.pl
Previous Message Tom Lane 2005-03-27 07:26:02 Re: BUG #1563: wrong week returnded by date_trunc('week',