How to use PostgreSQL pgvector with JPA, Hibernate, and Spring AI
Introduction In this article, I’m going to show you how to map the PostgreSQL vector column type from pgvector to a JPA entity attribute using Hypersistence Utils, and how to use it with Spring AI and Ollama to implement semantic search, recommendations, and Retrieval-Augmented Generation (RAG). Starting with version 3.16.0, the Hypersistence Utils project provides the PostgreSQLVectorType.
Book Review – Just Use Postgres!
Introduction My friend, Denis Magda, wrote a wonderful book called Just Use Postgres!, and I’m glad that I got the chance to read it.
Hibernate ON CONFLICT DO clause
Introduction In this article, we are going to see how the Hibernate ON CONFLICT DO clause works, and how we can use it to execute an SQL UPSERT statement in a portable way.
PostgreSQL COPY result set to file
Introduction In this article, we are going to see how we can use the PostgreSQL COPY command to export a large result set to an external file.

