<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s" -->

---
title: PostgreSQL adapter for Python | daily.dev
description: Psycopg 2.7.3 is a quick patch release fixing a regression from 2.7.2 that broke default typecasting of timestamptz arrays to Python datetime objects. The fix...
canonical: https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PostgreSQL adapter for Python | daily.dev
og:description: Psycopg 2.7.3 is a quick patch release fixing a regression from 2.7.2 that broke default typecasting of timestamptz arrays to Python datetime objects. The fix...
og:url: https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s
og:image: https://api.daily.dev/og/posts/tRRfxAu0S.png
og:image:alt: PostgreSQL adapter for Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PostgreSQL adapter for Python

**[Psycopg](https://daily.dev/sources/psycopg)** · 1 min read · 0 upvotes · 0 comments

## Summary

Psycopg 2.7.3 is a quick patch release fixing a regression from 2.7.2 that broke default typecasting of timestamptz arrays to Python datetime objects. The fix restores the previous behavior. Available via PyPI or source.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.psycopg.org/articles/2017/07/24/psycopg-273-released>

## Questions this post answers

### Why did timestamptz array values stop converting to Python datetime objects after upgrading psycopg2?

Psycopg2 2.7.2 introduced a regression that broke the default typecasting of timestamptz[] columns to Python datetime objects, tracked as ticket #578. The fix shipped in psycopg2 2.7.3, which restores the original default typecasting behavior. Upgrading to 2.7.3 resolves the issue without any code changes required.

_Track psycopg2 regressions and patch releases like this one on daily.dev before they hit your database layer._

---

Tags: [#python](https://daily.dev/tags/python), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"PostgreSQL adapter for Python","url":"https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s"},"datePublished":"2026-08-23T12:18:56.394Z","dateModified":"2026-08-23T12:35:03.286Z","description":"Psycopg 2.7.3 is a quick patch release fixing a regression from 2.7.2 that broke default typecasting of timestamptz arrays to Python datetime objects. The fix...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0cbd2ac8948f96ab39fa6a90db7464f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0cbd2ac8948f96ab39fa6a90db7464f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Psycopg","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Psycopg","logo":"https://media.daily.dev/image/upload/s--5N-KNNWk--/f_auto,q_auto/v1787487485/logos/psycopg?_a=BAMAMicg0","url":"https://daily.dev/sources/psycopg"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,postgresql","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Psycopg","item":"https://daily.dev/sources/psycopg"},{"@type":"ListItem","position":3,"name":"PostgreSQL adapter for Python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/postgresql-adapter-for-python-trrfxau0s#faq","mainEntity":[{"@type":"Question","name":"Why did timestamptz array values stop converting to Python datetime objects after upgrading psycopg2?","acceptedAnswer":{"@type":"Answer","text":"Psycopg2 2.7.2 introduced a regression that broke the default typecasting of timestamptz[] columns to Python datetime objects, tracked as ticket #578. The fix shipped in psycopg2 2.7.3, which restores the original default typecasting behavior. Upgrading to 2.7.3 resolves the issue without any code changes required. Track psycopg2 regressions and patch releases like this one on daily.dev before they hit your database layer."}}]}
```

