Re: [PATCHES] Approximate count(*)

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: [PATCHES] Approximate count(*)
Дата
Msg-id 20050327212415.GQ51784@decibel.org
обсуждение исходный текст
Ответ на Re: [PATCHES] Approximate count(*)  (Josh Berkus <josh@agliodbs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Version information in docs
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Missing doc on expression format for ALTER TABLE