Re: Seeking PL/PGSQL example

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Seeking PL/PGSQL example
Дата
Msg-id BF570CF7-A9E4-45CD-A416-4EED74211EF1@pgedit.com
обсуждение исходный текст
Ответ на Seeking PL/PGSQL example  ("John Wells" <jb@sourceillustrated.com>)
Список pgsql-general
On Aug 12, 2005, at 5:26 PM, John Wells wrote:

> I'm getting started with PL/PGSQL but want to understand if the
> following
> is even possible:
>
> With PL/PGSQL, how would I roll through all tables in my database and
> print the table name, along with the row count of that table?
>
> Sorry if this is too simplistic.  I've googled but must not be
> phrasing my
> question properly.  Currently reading through the manual, but if
> someone
> has any helpful tips I'd appreciate it.


There is some code here that shows how to loop through all tables to
grant or revoke access privileges. You can easily adapt it to print
table name and row count.

http://pgedit.com/node/20


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: append to the current search_path
Следующее
От: "William ZHANG"
Дата:
Сообщение: Re: Where can I download HTML manual?