diff --git a/README.md b/README.md index 74ed301..276c64a 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### postgres +- [A Better Null Display Character](postgres/a-better-null-display-character.md) - [Auto Expanded Display](postgres/auto-expanded-display.md) - [Checking The Type Of A Value](postgres/checking-the-type-of-a-value.md) - [Configure The Timezone](postgres/configure-the-timezone.md) diff --git a/postgres/a-better-null-display-character.md b/postgres/a-better-null-display-character.md new file mode 100644 index 0000000..e169bb2 --- /dev/null +++ b/postgres/a-better-null-display-character.md @@ -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.