Opened 4 years ago

Closed 5 months ago

#51 closed defect (invalid)

Proper Python type for bytea values

Reported by: cito Owned by:
Priority: major Milestone: 5.1
Component: DB API 2 Version: 4.1
Keywords: Cc:

Description

Currently, Pygres can accept and return bytea values only as strings.

Using file streams for bytea as implemented in psycopg2, might be a much better solution.

This could be made configurable with a switch that would be set to off by default in 5.x, and then in 6.x the switch could be flipped.

Change History (3)

comment:1 Changed 4 years ago by cito

  • Milestone changed from 4.2 to 5.0

comment:2 Changed 4 years ago by cito

  • Milestone changed from 5.0 to 5.1

comment:3 Changed 5 months ago by cito

  • Resolution set to invalid
  • Status changed from new to closed

Actually I don't remember what I wanted to do here and what psycopg2 does differently. You can already use file streams for large objects in pg and with copy_from/to in pgdb.

Note: See TracTickets for help on using tickets.