Re: Question

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: Question
Дата
Msg-id 403782F6.5050404@frodo.hserus.net
обсуждение исходный текст
Ответ на Re: Question  (Rod Taylor <pg@rbt.ca>)
Ответы Re: Question  (David Costa <geeks@dotgeek.org>)
Re: Question  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-advocacy
Rod Taylor wrote:


> rbt=# select nspname, sum(relpages) from pg_class join pg_namespace n on
> (relnamespace = n.oid) group by nspname, relnamespace having 2 > (SELECT
> count(*) from pg_constraint where relnamespace = connamespace);
>
> With some effort you might be able to get the above down to a single
> line (shorter column names, etc.).
>
> It takes the sum of pages used by relations in namespaces with a minimum
> of 2 constraints.

I think any query fiddling with metadata is a bad idea for a sig.

I would say overriding function calls in a single query would make great
example. After all O in ORDBMS is for overriding..:-)

How about declaring a contest on general? An event always stirrs up creativity.

  Shridhar

В списке pgsql-advocacy по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: News Feed: PHP/Postgresql Advocacy
Следующее
От: David Costa
Дата:
Сообщение: Re: Question