mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 16:48:01 +00:00
Add A Better Mull Display Character as postgres til.
This commit is contained in:
12
postgres/a-better-null-display-character.md
Normal file
12
postgres/a-better-null-display-character.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# A Better Null Display Character
|
||||
|
||||
By default, `psql` will display null values with whitespace. This makes it
|
||||
difficult to quickly identify null values when they appear amongst a bunch
|
||||
of other data. You can pick a better display value for null characters with
|
||||
`\pset null`. My preference is the following:
|
||||
|
||||
```
|
||||
\pset null 'Ø'
|
||||
```
|
||||
|
||||
I have this in my `.psqlrc` file so that it is used by default every time.
|
||||
Reference in New Issue
Block a user