question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

\list does not work and \l only has one column

See original GitHub issue

Description

I expected \list to return a list of databases, instead it gives this error:

syntax error at or near "\"
LINE 1: \list
        ^

Time: 0.001s

If I use psql, \list behaves like \l, it gives a list of databases with these column headers:

                                           List of databases
          Name          |   Owner    | Encoding |   Collate   |    Ctype    |     Access privileges
------------------------+------------+----------+-------------+-------------+---------------------------
 example                | example    | UTF8     | en_GB.UTF-8 | en_GB.UTF-8 |

In pgcli, \l only has one column:

+------------------------+
| datname                |
|------------------------|
| example                |
+------------------------+

I think pgcli should be have like psql: both \list and \l should be supported, and it should output all the columns “name”, “owner”, “encoding”, etc.

Your environment

I’m using version: 1.3.1 of pgcli and comparing it to version 9.6.2 of psql.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fpietkacommented, Dec 28, 2017

Fixed since 1.8.2

0reactions
fpietkacommented, Jul 17, 2017

I’ll be glad to do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only one expression can be specified in the select list when ...
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.` When I run the sub-query...
Read more >
Check If One Column Value Exists in Another Column - Got It AI
This article shows you several methods to check if one column value exists in another column. ... Post your problem and you'll get...
Read more >
Can I add multiple reference columns to a choice list?
Solved: I have a custom application with a reference field on it. The reference field however is set to be a choice list...
Read more >
5 Reasons why your Excel filter may not be working
Excel filter not working properly or as you would like it to? Here are some reasons ... Check your data has just one...
Read more >
Excel VLOOKUP not working - fixing #N/A and #VALUE errors
This tutorial shows how you can quickly fix common VLOOKUP errors and ... The lookup column is not the leftmost column of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found