diff --git a/README.md b/README.md index e9276c4..b982b98 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_1119 TILs and counting..._ +_1120 TILs and counting..._ --- @@ -572,6 +572,7 @@ _1119 TILs and counting..._ - [Getting A Slice Of An Array](postgres/getting-a-slice-of-an-array.md) - [Group By The Result Of A Function Call](postgres/group-by-the-result-of-a-function-call.md) - [Insert Just The Defaults](postgres/insert-just-the-defaults.md) +- [Install Postgres With uuid-ossp Using asdf](postgres/install-postgres-with-uuid-ossp-using-asdf.md) - [Integers In Postgres](postgres/integers-in-postgres.md) - [Intervals Of Time By Week](postgres/intervals-of-time-by-week.md) - [Is It Null Or Not Null?](postgres/is-it-null-or-not-null.md) diff --git a/postgres/install-postgres-with-uuid-ossp-using-asdf.md b/postgres/install-postgres-with-uuid-ossp-using-asdf.md new file mode 100644 index 0000000..244dee3 --- /dev/null +++ b/postgres/install-postgres-with-uuid-ossp-using-asdf.md @@ -0,0 +1,22 @@ +# Install Postgres With uuid-ossp Using asdf + +The `uuid-ossp` extension is part of `postgres-contrib` and is often included +with installs of PostgreSQL. By default, when installing PostgreSQL with +[`asdf`](https://asdf-vm.com/#/) using the +[`asdf-postgres`](https://github.com/smashedtoatoms/asdf-postgres) plugin, the +`uuid-ossp` extension is not included. + +To include `uuid-ossp` when installing Postgres with `asdf`, you'll need to +include _extra config options_. + +For instance, to install Postgres 9.6.21 with `uuid-ossp` included: + +```bash +$ POSTGRES_EXTRA_CONFIGURE_OPTIONS="--with-uuid=e2fs" asdf install postgres 9.6.21 +``` + +There are some resources that recommend using `--with-uuid=ossp`, but that +appears to require a prerequisite install of a separate package, so I prefer +the `e2fs` option. + +[source](https://github.com/smashedtoatoms/asdf-postgres/issues/4#issuecomment-350592132)