Re: Seeking PL/PGSQL example - Mailing list pgsql-general

From John DeSoi
Subject Re: Seeking PL/PGSQL example
Date
Msg-id BF570CF7-A9E4-45CD-A416-4EED74211EF1@pgedit.com
Whole thread Raw
In response to Seeking PL/PGSQL example  ("John Wells" <jb@sourceillustrated.com>)
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: append to the current search_path
Next
From: "William ZHANG"
Date:
Subject: Re: Where can I download HTML manual?