Skip to content

docs: clarify pgvector setup for tiered tables - #172

Closed
prabhacloud wants to merge 1 commit into
pgEdge:mainfrom
prabhacloud:docs/clarify-vector-extension
Closed

prabhacloud wants to merge 1 commit into
pgEdge:mainfrom
prabhacloud:docs/clarify-vector-extension

Conversation

@prabhacloud

Copy link
Copy Markdown

Summary

Clarifies that ColdFront creates the pgvector extension automatically for decoupled tables, while tiered tables need CREATE EXTENSION vector before PostgreSQL parses a vector column.

Closes #156

Testing

  • make test
  • git diff --check origin/main...HEAD

The strict MkDocs build passed before the rebase. After the rebase, the local shell did not have MkDocs installed. The rebase only incorporated upstream’s existing decoupled-table wording and retained the documentation change for tiered tables.

Risk and rollback

Documentation-only change. Revert commit b4a3bbd if the wording needs adjustment.

@prabhacloud
prabhacloud requested review from a team and vyruss as code owners December 3, 2026 02:10
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The vector usage guide now distinguishes pgvector setup requirements for decoupled and tiered tables.

Changes: Vector Extension Usage Guide

Layer / File(s) Summary
Document extension setup
docs/usage_vectors.md
The guide states that decoupled table creation installs pgvector when absent. For tiered tables, it instructs users to run CREATE EXTENSION vector before CREATE TABLE so PostgreSQL can resolve the vector type.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other · Severity of issue fixed: Low

Merge Risk: Minimal · up to b4a3b

This is a documentation-only clarification of pgvector setup for decoupled and tiered tables. It has no runtime impact and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: it clarifies pgvector setup for tiered tables, which matches the docs/usage_vectors.md edit that states tiered tables need CREATE EXTENSION vector before CREATE TABLE.…
Description check Passed The description states the purpose: ColdFront creates the pgvector extension for decoupled tables, while tiered tables need CREATE EXTENSION vector first. It also lists the tests run, the rebase conte…
Linked Issues check Passed [#156] Issue #156 is closed and supplies historical context only. Its one concrete requirement, a documentation fix, is still checked against the reviewed head because it is the only change under revi…
Out of Scope Changes check Passed The supplied summary reports one changed file, docs/usage_vectors.md, with +3/-1 lines. The changed passage is the pgvector setup guidance that issue #156 addresses. The PR description also describes …
Full details: Title check

Explanation

The title names the main change: it clarifies pgvector setup for tiered tables, which matches the docs/usage_vectors.md edit that states tiered tables need CREATE EXTENSION vector before CREATE TABLE. It is a docs-only change, and the title says so with the docs: prefix.

Full details: Description check

Explanation

The description states the purpose: ColdFront creates the pgvector extension for decoupled tables, while tiered tables need CREATE EXTENSION vector first. It also lists the tests run, the rebase context, and the rollback commit. This matches the documentation-only change in docs/usage_vectors.md.

Full details: Linked Issues check

Explanation

[#156] Issue #156 is closed and supplies historical context only. Its one concrete requirement, a documentation fix, is still checked against the reviewed head because it is the only change under review. In docs/usage_vectors.md ("Creating a Table" section), the head now states that a tiered table requires the pgvector extension first, because PostgreSQL must resolve the vector type to create the table, and that CREATE EXTENSION vector must run before CREATE TABLE. It also states that when a decoupled table declares a vector column, ColdFront creates the pgvector extension if the database lacks it. This separates the two paths as the issue's suggested fix requests. The original unqualified claim that ColdFront always installs pgvector is no longer present in that section. Non-coding documentation requirements are not otherwise applicable.

Full details: Out of Scope Changes check

Explanation

The supplied summary reports one changed file, docs/usage_vectors.md, with +3/-1 lines. The changed passage is the pgvector setup guidance that issue #156 addresses. The PR description also describes a documentation-only change. The direct diff read failed because changed blobs were missing from the checkout. The head file content shows the changed guidance sits in the setup section and matches the issue. No unrelated code or configuration change is evidenced. Remaining uncertainty is limited to the unreadable diff hunks; the summary is consistent with the file content.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 39253cc and b4a3bbd.

Files selected for processing: 1

  • docs/usage_vectors.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

vyruss commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your contribution. #169 already fixed it: the tiered-table requirement is now at the top of "Creating a Table" in docs/usage_vectors.md. Closing as duplicate.

@vyruss vyruss added the duplicate This issue or pull request already exists label Dec 3, 2026 — with Claude
@vyruss vyruss closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc bug: usage_vectors.md says pgvector installs automatically, but that only works for decoupled tables

2 participants