Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.pgvectorscale-ubuntu-24-04-d7b7dab8-3735-49c8-9283-223ced5f81c5/image3_logolarge.png

PostgreSQL 18 Vector Database with pgvectorscale on Ubuntu 24.04 by cloudimg

by cloudimg

Nearest neighbour search over embeddings, at scale, in a PostgreSQL you already run.

PostgreSQL 18 Vector Database with pgvectorscale on Azure by cloudimg

One PostgreSQL that stores high dimensional embeddings next to ordinary relational data and ranks rows by similarity, with two complementary index families available in the same database. pgvector supplies the `vector` column type, the distance operators and the HNSW and IVFFlat indexes. pgvectorscale adds StreamingDiskANN, an approximate nearest neighbour index inspired by Microsoft research that keeps most of the index on disk rather than in memory, together with statistical binary quantisation, so a large embedding collection can be served from a modest machine.

Both extensions are under the permissive PostgreSQL License. pgvectorscale has no distribution package: cloudimg compiles it from the pinned upstream source at image build time, verifies the licence at that exact tag, and then removes the compiler, so the image carries the extension and no toolchain.

Why Choose cloudimg?

  • 24/7 Expert Support with guaranteed 24 hour response. Contact support@cloudimg.co.uk
  • Production Ready from Launch Preconfigured, fully patched at build time, validated on a fresh virtual machine
  • No Known Credential The image ships no database cluster, so no role, password or certificate exists to discover
  • Azure Native Integration Azure Linux Agent, cloud init, Gen2 Hyper V support
  • No License Fees PostgreSQL, pgvector and pgvectorscale are all free and open source. Pay only for Azure infrastructure and cloudimg support

Every Machine Gets Its Own Database

The captured image contains the PostgreSQL binaries and both extensions but no data directory. At first boot each virtual machine runs its own `initdb`, generates its own TLS certificate, and generates separate passwords for the `postgres` superuser and the `vectorapp` application role, writing them to a file only root can read. No two deployments share a cluster identity, a certificate or a password, and there is no window in which a default or blank credential exists.

Closed by Default

PostgreSQL is bound to loopback, so the only port a freshly deployed machine exposes is SSH on 22. `pg_hba.conf` already requires TLS and `scram-sha-256` on every TCP path, including loopback, so opening the database to your application subnet is a single deliberate change and the per VM password is enforced from the first packet.

What's Included

  • PostgreSQL 18 from the official PostgreSQL PGDG repository, running under systemd
  • pgvector and pgvectorscale both preenabled in a ready to use `vectordb` database
  • A demo collection of two thousand 128 dimension vectors with a StreamingDiskANN index already built, so a real similarity query runs the moment the machine boots
  • A per VM database cluster, TLS certificate and two generated passwords, created at first boot
  • Unattended security updates already armed
  • Exactly one externally reachable port: SSH on 22
  • A paired deployment guide covering indexing your own embeddings and confirming the planner uses the index

PostgreSQL 18 receives community support until November 2030.

At a glance

https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.pgvectorscale-ubuntu-24-04-d7b7dab8-3735-49c8-9283-223ced5f81c5/image0_screenshot01.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.pgvectorscale-ubuntu-24-04-d7b7dab8-3735-49c8-9283-223ced5f81c5/image5_screenshot02.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.pgvectorscale-ubuntu-24-04-d7b7dab8-3735-49c8-9283-223ced5f81c5/image2_screenshot03.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.pgvectorscale-ubuntu-24-04-d7b7dab8-3735-49c8-9283-223ced5f81c5/image7_screenshot04.png
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies