aboutsummaryrefslogtreecommitdiffstats
path: root/src/_pgsql_utils
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2020-06-03 14:24:46 +0900
committerGitHub <noreply@github.com>2020-06-03 14:24:46 +0900
commit3b247d3071b8f1b723f288aec10e91758a109045 (patch)
tree5d03ecfa646667ea3986c7bfc3b775e25d6f97ab /src/_pgsql_utils
parentMerge pull request #748 from arp242/pg_config (diff)
parentpgsql: add -X to psql commands to prevent loading ~/.psqlrc (diff)
downloadzsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar.gz
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar.bz2
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar.lz
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar.xz
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.tar.zst
zsh-completions-3b247d3071b8f1b723f288aec10e91758a109045.zip
Merge pull request #749 from arp242/psqlrc
pgsql: add -X to psql commands to prevent loading ~/.psqlrc
Diffstat (limited to 'src/_pgsql_utils')
-rw-r--r--src/_pgsql_utils10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/_pgsql_utils b/src/_pgsql_utils
index cbe2b8e..1e17dec 100644
--- a/src/_pgsql_utils
+++ b/src/_pgsql_utils
@@ -89,7 +89,7 @@ _pgsql_users () {
_pgsql_user_sql='select r.rolname from pg_catalog.pg_roles r where r.rolcanlogin = true'
- compadd "$@" - $( psql $_pgsql_params[@] -Aqt -c $_pgsql_user_sql template1 2>/dev/null )
+ compadd "$@" - $( psql $_pgsql_params[@] -XAqt -c $_pgsql_user_sql template1 2>/dev/null )
}
@@ -122,7 +122,7 @@ _pgsql_tables () {
order by 1"
compadd "$@" - \
- $( psql $_pgsql_params[@] -Aqt -c $_pgsql_table_sql $db 2>/dev/null )
+ $( psql $_pgsql_params[@] -AXqt -c $_pgsql_table_sql $db 2>/dev/null )
}
_pgsql_schemas () {
@@ -139,7 +139,7 @@ _pgsql_schemas () {
order by 1;"
compadd "$@" - \
- $( psql $_pgsql_params[@] -Aqt -c $_pgsql_schema_sql $db 2>/dev/null )
+ $( psql $_pgsql_params[@] -AXqt -c $_pgsql_schema_sql $db 2>/dev/null )
}
_pgsql_databases () {
@@ -159,7 +159,7 @@ _pgsql_databases () {
compadd "$@" - \
${(f)_pgsql_services} \
- $( psql $_pgsql_params[@] -Atq -c $_pgsql_db_sql template1 2>/dev/null )
+ $( psql $_pgsql_params[@] -AXtq -c $_pgsql_db_sql template1 2>/dev/null )
}
_pgsql_encodings () {
@@ -169,7 +169,7 @@ _pgsql_encodings () {
local _pgsql_db_sql
_pgsql_db_sql="select pg_encoding_to_char(i) from generate_series(0,100) i;"
- compadd "$@" - $( psql $_pgsql_params[@] -Atq -c $_pgsql_db_sql template1 )
+ compadd "$@" - $( psql $_pgsql_params[@] -AXtq -c $_pgsql_db_sql template1 )
}