psql's \l

Started by Devrim GUNDUZover 21 years ago4 messages
#1Devrim GUNDUZ
devrim@gunduz.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I just received a question about psql. They want psql to show 'only' the
databases that the 'current_user' owns.

I'd like to hack it for them but I don't know where \l is called and
defined. Could someone point me where the code is?

Thanks.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBId4qtl86P3SPfQ4RAl8iAKCahouLYCZ16+/nN0HQJ6iBBTugxACeOAkV
cginXJaELoK69NtD8SN6DzY=
=2ERW
-----END PGP SIGNATURE-----

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Devrim GUNDUZ (#1)
Re: psql's \l

Am Dienstag, 17. August 2004 12:30 schrieb Devrim GUNDUZ:

I'd like to hack it for them but I don't know where \l is called and
defined. Could someone point me where the code is?

src/bin/psql$ grep pg_database *.c

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#3Devrim GUNDUZ
devrim@gunduz.org
In reply to: Peter Eisentraut (#2)
Re: psql's \l

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Tue, 17 Aug 2004, Peter Eisentraut wrote:

I'd like to hack it for them but I don't know where \l is called and
defined. Could someone point me where the code is?

src/bin/psql$ grep pg_database *.c

Thanks.
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBIfFjtl86P3SPfQ4RArzBAKCibAfEyLefZ0dwziwi6JUA+ulM6ACeMvja
7SCWaCwyFw5Lb24JKY2FMAU=
=suLK
-----END PGP SIGNATURE-----

#4Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Devrim GUNDUZ (#3)
Re: psql's \l

I'd like to hack it for them but I don't know where \l is called and
defined. Could someone point me where the code is?

src/bin/psql$ grep pg_database *.c

Probably in describe.c

Erm, but what stops them from going:

SELECT * FROM pg_database;

Chris