Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Db Pgsql Laravel Package

yiisoft/db-pgsql

PostgreSQL driver for the Yii Database abstraction layer, offering PDO-based connections, schema introspection, query building, and ActiveRecord support for Yii applications and compatible frameworks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dependency health / risk scoring: 2.0.1 is a maintenance release on the 2.0 line — performance tuning, SQL-correctness fix, housekeeping. No breaking changes, no deprecations, no new public API surface. Treat this as a stability signal, not a roadmap event: the maintainers are actively shipping patches, which lowers the "abandoned dependency" risk on your scorecard.
  • Build vs. buy (stay vs. fork): The two performance patches (ArrayParser::parse(), StructuredParser::parse()) directly target the hot path for reading PostgreSQL array and composite/structured column types. If your product reads array columns at volume (tags, permission sets, event payloads) and you were considering hand-rolling hydration or caching layers to compensate, benchmark 2.0.1 first — you may be able to delete work from the roadmap.
  • Data-correctness / support-ticket reduction: Bug #481 ("Fix quoting array column names") is the one item with real product exposure. Incorrect identifier quoting on array columns can produce failing or wrong-result queries for schemas with mixed-case or reserved-word array column names. If you support customer-defined schemas or multi-tenant DDL, upgrading is a low-cost way to retire a class of SQL bugs before they become tickets.
  • Release-engineering / CI cost: Removing unnecessary files from the Composer package (#480) shrinks the vendor footprint. Marginal individually, but it compounds across a large dependency tree in CI install times and container image size — relevant if you are mid-initiative on build-time or artifact slimming.
  • Platform standardization: This is the PostgreSQL driver for the Yii ecosystem (Yii3 DB layer), not Laravel. It informs a decision about whether Yii is an acceptable house framework for DB-heavy services — it is not a drop-in component for a Laravel application, and should not be scoped as one in a Laravel roadmap.

When to Consider This Package

Consider it when:

  • Your service is built on Yii3 / yiisoft/db and PostgreSQL is the target database — this is the first-party, version-aligned driver rather than a community fork.
  • You need first-class support for PostgreSQL-specific types (arrays, structured/composite types, JSON) through the framework's query builder and hydration layer, and you want that maintained upstream instead of in your own code.
  • You require a driver that is semver-disciplined and actively patched — 2.0.1 shows a maintainer cadence with a clean patch boundary.
  • You are standardizing a polyglot-PHP org and want one DB abstraction with a per-vendor driver package, so database choice is a config decision rather than a code decision.

Look elsewhere when:

  • The stack is Laravel. Laravel ships its own Illuminate\Database PostgreSQL connector on top of pdo_pgsql; adopting yiisoft/db-pgsql would mean fighting two query builders and two connection lifecycles. Say no early and explicitly — this is the most likely mis-scoping of this package.
  • You are on Doctrine DBAL, Cycle, or plain PDO and only need parameterized SQL — a framework DB layer is unnecessary abstraction and lock-in.
  • You depend on the 1.x line: 2.0 was a major and 2.0.1 does not backport these fixes. Confirm which line you are on before promising the performance or quoting improvements to anyone.
  • You need vendor-specific features ahead of the driver (e.g. LISTEN/NOTIFY, logical replication, advanced COPY semantics) — verify coverage against your use cases rather than assuming.

Action for this release: safe, low-risk patch upgrade from any 2.0.x. No migration work, no API changes. Schedule it in the normal dependency-refresh cadence — do not run a dedicated release train for it.

How to Pitch It (Stakeholders)

To executives: This is a routine maintenance patch on an actively maintained open-source PostgreSQL driver, with no breaking changes and no migration cost. The one commercially relevant item is a bug fix for how array-typed database columns are quoted — that removes a source of hard-to-reproduce query failures in customer-defined schemas. Two of the five changes are performance improvements on the data-reading path, so customers on large datasets may see modest latency gains at zero engineering cost. Recommendation: approve as a standard dependency refresh; no budget, no headcount, no roadmap impact.

To engineering: 2.0.1 is a patch on the 2.0 major — drop-in for anyone already on 2.0.x. Upgrade to get (1) faster ArrayParser::parse() and StructuredParser::parse(), which is the hydration path for array and composite column types, (2) the fix for quoting array column names, which matters if you have mixed-case or reserved-word column names, and (3) a slimmer Composer package. Explicit function/constant imports were also added, which is a small readability and opcache-friendly cleanup. No deprecations, no signature changes. One clarification worth circulating: this is the Yii PostgreSQL driver, not a Laravel package — do not add it to Laravel services. For those on 1.x, note that these fixes are 2.0-only; flag that as a separate upgrade conversation rather than bundling it into this patch.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource