| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | dipti shah <shahdipti1980(at)gmail(dot)com> |
| Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Questions on PostGreSQL Authentication mechanism... |
| Date: | 2010-02-02 10:02:21 |
| Message-ID: | 4B67F82D.2080808@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 02/02/10 09:58, dipti shah wrote:
> Techdb=# show hba_file;
> hba_file
> --------------------------------------
> /etc/postgresql/8.4/main/pg_hba.conf
> (1 row)
Ah! you're running a Debian-based system by the look of it.
> Moreover, is there anyway to view content of this file from stored in above
> location "Techdb" command prompt itself.
>
> Techdb=# cat /etc/postgresql/8.4/main/pg_hba.conf;
> ERROR: syntax error at or near "cat"
> LINE 1: cat /etc/postgresql/8.4/main/pg_hba.conf;
> ^
You would normally do so from the system shell rather than psql.
However, you can "shell out" with a backslash command in psql:
\! cat /etc/...
You might not have permission to view that file.
A full list of psql backslash commands are available in the manual
(client applications), psql man-page and by doing \? (or \h for sql help).
HTH
--
Richard Huxton
Archonet Ltd
| From | Date | Subject | |
|---|---|---|---|
| Next Message | dipti shah | 2010-02-02 10:03:01 | Re: Questions on PostGreSQL Authentication mechanism... |
| Previous Message | dipti shah | 2010-02-02 10:01:47 | Does PostGreSQL support SSL inbuilt? |