Skip to content

Add support for COPY command in bulk inserts with lib/pq driver #3264

Open

Description

@giulianopz

What do you want to change?

At the moment, the documentation states:

PostgreSQL supports the COPY protocol that can insert rows a lot faster than sequential inserts.
[...]
The :copyfrom command requires either pgx/v4 or pgx/v5.

Please, add support for bulk inserts also with lib/pq by means of a COPY instruction as originally requested by the issue #218 opened by @kyleconroy.

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Activity

  1. removed
    triageNew issues that hasn't been reviewed
    on Aug 5, 2024
  2. bgentry commented on Sep 10, 2024

    @bgentry

    I'm not sure how much work this feature would take in sqlc, but it may not be worth it. Users of lib/pq would be better served by moving away from it given that it's semi-unmaintained. From its readme:

    For users that require new features or reliable resolution of reported bugs, we recommend using pgx which is under active development.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions