Thread: psql's \l

psql's \l

From
Devrim GUNDUZ
Date:
-----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-----



Re: psql's \l

From
Peter Eisentraut
Date:
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/


Re: psql's \l

From
Devrim GUNDUZ
Date:
-----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-----



Re: psql's \l

From
Christopher Kings-Lynne
Date:
>>>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