Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

225
Vistas
Difference between username-# and username=# in psql shell?

The user comes up usually in the form username=# in the console once you enter psql into the terminal. But then I noticed it said username-# where the equal sign was replaced with a hyphen but it still seemed to perform the same way.

I know it's a simple question but I'd still like to know. Does this change in symbol mean anything in particular?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It's not username, it's the name of the database you're connected to. Usually each user has a private database, and psql connects to it by default.

The - means you're in the middle of writing an SQL query, or "ending semicolon missing":

test=# select 1+1
test-# ;
 ?column? 
----------
        2
(1 row)

Also, when you have unmatched delimiters, those are shown:

test=# select (1+1
test(# )
test-# ;
 ?column? 
----------
        2
(1 row)
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda