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

---
title: PostgreSQL adapter for Python | daily.dev
description: Psycopg 2.6.1, the popular PostgreSQL adapter for Python, has been released with several bug fixes. The most notable fix resolves a libcrypto callbacks...
canonical: https://daily.dev/posts/postgresql-adapter-for-python-72wt5ypyc
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.6.1, the popular PostgreSQL adapter for Python, has been released with several bug fixes. The most notable fix resolves a libcrypto callbacks...
og:url: https://daily.dev/posts/postgresql-adapter-for-python-72wt5ypyc
og:image: https://api.daily.dev/og/posts/72Wt5ypYC.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.6.1, the popular PostgreSQL adapter for Python, has been released with several bug fixes. The most notable fix resolves a libcrypto callbacks conflict between libpq and Python (ticket #290). Additional fixes include correct escaping of lists containing only None values, proper connection unlocking after flush errors, and a fix for MinTimeLoggingCursor.callproc().

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.psycopg.org/articles/2015/06/16/psycopg-261-released>

## Questions this post answers

### What was fixed in psycopg2 2.6.1?

Psycopg2 2.6.1 fixes a libcrypto callbacks conflict between libpq and Python, reported as ticket #290 and fixed by Jan Urbański. It also fixes incorrect escaping of lists containing only None values (ticket #285), a connection locking bug after errors in flush (ticket #294), and a bug in MinTimeLoggingCursor.callproc() (ticket #309).

_Track dependency patch notes like this on daily.dev before upgrading a production database driver._

### Why does my psycopg2 list of None values get escaped incorrectly?

This was a bug present before psycopg2 2.6.1, where lists consisting of only None values were escaped incorrectly, tracked as ticket #285. Upgrading to psycopg2 2.6.1 resolves this along with several other fixes, including a libcrypto conflict between libpq and Python.

_Developers debugging driver quirks like this follow psycopg2 release fixes on daily.dev._

---

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-72wt5ypyc)

```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-72wt5ypyc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/postgresql-adapter-for-python-72wt5ypyc"},"datePublished":"2026-08-23T12:22:20.267Z","dateModified":"2026-08-23T12:50:00.752Z","description":"Psycopg 2.6.1, the popular PostgreSQL adapter for Python, has been released with several bug fixes. The most notable fix resolves a libcrypto callbacks...","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-72wt5ypyc","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-72wt5ypyc#faq","mainEntity":[{"@type":"Question","name":"What was fixed in psycopg2 2.6.1?","acceptedAnswer":{"@type":"Answer","text":"Psycopg2 2.6.1 fixes a libcrypto callbacks conflict between libpq and Python, reported as ticket #290 and fixed by Jan Urbański. It also fixes incorrect escaping of lists containing only None values (ticket #285), a connection locking bug after errors in flush (ticket #294), and a bug in MinTimeLoggingCursor.callproc() (ticket #309). Track dependency patch notes like this on daily.dev before upgrading a production database driver."}},{"@type":"Question","name":"Why does my psycopg2 list of None values get escaped incorrectly?","acceptedAnswer":{"@type":"Answer","text":"This was a bug present before psycopg2 2.6.1, where lists consisting of only None values were escaped incorrectly, tracked as ticket #285. Upgrading to psycopg2 2.6.1 resolves this along with several other fixes, including a libcrypto conflict between libpq and Python. Developers debugging driver quirks like this follow psycopg2 release fixes on daily.dev."}}]}
```

