Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

psql

psql: FATAL: database “” does not exist

September 6, 2022 by Tarik

It appears that your package manager failed to create the database named $user for you. The reason that psql -d template1 works for you is that template1 is a database created by postgres itself, and is present on all installations. You are apparently able to log in to template1, so you must have some rights … Read more

Categories postgresql Tags postgresql, psql Leave a comment

How to switch databases in psql?

August 29, 2022 by Tarik

In PostgreSQL, you can use the \connect meta-command of the client tool psql: \connect DBNAME or in short: \c DBNAME

Categories postgresql Tags postgresql, psql Leave a comment

How to exit from PostgreSQL command line utility: psql

August 27, 2022 by Tarik

Type \q and then press ENTER to quit psql. UPDATE: 19-OCT-2018 As of PostgreSQL 11, the keywords “quit” and “exit” in the PostgreSQL command-line interface have been included to help make it easier to leave the command-line tool.

Categories postgresql Tags postgresql, postgresql-9.1, psql Leave a comment

PostgreSQL “DESCRIBE TABLE”

August 27, 2022 by Tarik

Try this (in the psql command-line tool): \d+ tablename See the manual for more info.

Categories postgresql Tags postgresql, psql, table-structure Leave a comment
Newer posts
← Previous Page1 … Page8 Page9

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa