Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-docspgsql-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! 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

pgsql-docs by date

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

pgsql-patches by date

Next:From: Bruce MomjianDate: 2005-03-28 05:06:37
Subject: Re: contrib
Previous:From: Tom LaneDate: 2005-03-27 07:26:02
Subject: Re: BUG #1563: wrong week returnded by date_trunc('week',

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group