Is there a "right" way to test if a database is empty? - Mailing list pgsql-hackers

Hi all,

I need to test whether a database is empty, in other words “createdb” has been executed but no data of any kind appears
inthat database. 

What is the correct postgresql way to do this?

Is there a pg_isempty command or equivalent somewhere?

Regards,
Graham
—


Attachment

pgsql-hackers by date:

Previous
From: Marina Polyakova
Date:
Subject: Re: master make check fails on Solaris 10
Next
From: Tom Lane
Date:
Subject: Re: master make check fails on Solaris 10