Skip to content

Commit 57248a4

Browse files
committed
fixing the formatting of the psql note
1 parent e0f7e5d commit 57248a4

File tree

1 file changed

+35
-19
lines changed

1 file changed

+35
-19
lines changed

connect-to-psql.md

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,41 @@ These flags are only used at the bash or shell prompt, not the repl.
188188

189189
Here are some `\` commands that can be used inside the psql repl, at the `usernamehere=#` prompt.
190190

191-
\a says Output format is unaligned
192-
\c reports what user is currently connected to which database(s)
193-
\d usually reports whether it can find any relations
194-
\e lets the user change their editor
195-
\f shows the user their field separator
196-
\h shows the avaliable SQL commands which have help associated with them
197-
\i says it needs an argument, unknown right now what that argument is
198-
\l lists the currentdatabases
199-
\p usually says the query buffer is empty
200-
\q exits psql
201-
\r resets the query buffer
202-
\s shows command history in the current user(s) database(s)? press q to exit this
203-
\t says Tuples is on
204-
\w needs an argument unsure what the argument needed is
205-
\x says expanded display is on
206-
207-
\C says Title is unset
208-
\H says output format is html
209-
\T is almost the same as \t but it says Table attuributes are unset
191+
- \a says Output format is unaligned
192+
193+
- \c reports what user is currently connected to which database(s)
194+
195+
- \d usually reports whether it can find any relations
196+
197+
- \e lets the user change their editor
198+
199+
- \f shows the user their field separator
200+
201+
- \h shows the avaliable SQL commands which have help associated with them
202+
203+
- \i says it needs an argument, unknown right now what that argument is
204+
205+
- \l lists the currentdatabases
206+
207+
- \p usually says the query buffer is empty
208+
209+
- \q exits psql
210+
211+
- \r resets the query buffer
212+
213+
- \s shows command history in the current user(s) database(s)? press q to exit this
214+
215+
- \t says Tuples is on
216+
217+
- \w needs an argument unsure what the argument needed is
218+
219+
- \x says expanded display is on
220+
221+
- \C says Title is unset
222+
223+
- \H says output format is html
224+
225+
- \T is almost the same as \t but it says Table attuributes are unset
210226

211227
Also try out something like:
212228
`psql -H 192.168.1.100 -U postgres -d mydb`

0 commit comments

Comments
 (0)