nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Howto list or display databases on a PostgreSQL PgSQL server

This is a discussion on Howto list or display databases on a PostgreSQL PgSQL server within the Databases servers forums, part of the Mastering Servers category; Hai all, How do I list database names on a PostgreSQL database server? TIA...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-06-2007, 12:13 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 151
Rep Power: 4
sweta will become famous soon enough
Default Howto list or display databases on a PostgreSQL PgSQL server

Hai all,

How do I list database names on a PostgreSQL database server?

TIA
__________________
Friends - v-nessa - missyAdmin
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-06-2007, 12:17 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 902
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Login to pgsql server using any one of the command:
Code:
su - postgres
psql template1
OR
Code:
su - postgres
psql -d template1 -U postgres
Type \l
Code:
 template1# \l
You can also use psql itself
Code:
su - postgres
psql -l
To get help type
Code:
\h
and
Code:
psql --help
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
UNIX Display or list number of files in a current directory raj Getting started tutorials 1 12-07-2007 10:55 AM
MySQL remote server access howto raj Databases servers 0 07-29-2007 05:32 AM
Oracle "show databases" list raj Databases servers 1 05-18-2007 01:21 AM
How do I backup MySQL Databases? chiku All about FreeBSD/OpenBSD/NetBSD 2 08-19-2006 07:15 PM
ReCompiling PHP with Pgsql sonaikar Linux software 1 02-23-2006 04:42 PM


All times are GMT +5.5. The time now is 12:16 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36