Skip to content

Instantly share code, notes, and snippets.

@Vinorcola
Created June 27, 2020 12:18
Show Gist options
  • Save Vinorcola/bbf40cf1c609f5d0d3b00c0c20c863de to your computer and use it in GitHub Desktop.
Save Vinorcola/bbf40cf1c609f5d0d3b00c0c20c863de to your computer and use it in GitHub Desktop.
Install PostgreSQL pg_similarity on Ubuntu

Install PostgreSQL pg_similarity extension on Ubuntu

1. Install the package

For PostgreSQL version 12.

sudo apt update
sudo apt install postgresql-12-similarity

2. Connect to database

sudo -i -u postgres
psql my_database

Check available extensions :

select * from pg_available_extensions order by name;

3. Install extension

create extension pg_similarity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment