#Psycopg

Paolo Melchiorrepaulox@fosstodon.org
2025-01-29

@psycopg I am honored to have participated in the resolution of issue #999 :)

github.com/psycopg/psycopg/iss

#Django #Psycopg #PostgreSQL #Memcached #PyLibMC #Python #Cache

Paolo Melchiorrepaulox@fosstodon.org
2024-07-01

Psycopg 3.2 has been released 🚀
psycopg.org/articles/2024/06/3

I can't wait to test it with Django 5.1b1 😬

#PsycoPG #Python #PostgreSQL #Postgres #Django #ORM

CC @psycopg

A drawing of a snake eating an elephant
2024-04-16

How does #Psycopg benefit from #PostgreSQL 17?
Read the last article of @dlax to find out => dali.bo/202404_psycopg3-2

#opensource #DBMS #python

capture de l'article

Any #python #psycopg people know why this works

```
#results = conn.execute('SELECT (embedding <=> %s) as distance, abstract FROM documents ORDER BY embedding <=> %s LIMIT 5', (query_embedding, query_embedding, )).fetchall()
```

But this throws an error
```
results = conn.execute(f'SELECT (embedding <=> {query_embedding}) as distance, abstract FROM documents ORDER BY embedding <=> {query_embedding} LIMIT 5').fetchall()
```

error in the thread

mgorny-nyan (he) :autism:🙀🚂🐧mgorny@treehouse.systems
2024-01-27

Just hit another issue related to `ctypes.util.find_library("c")` being broken on #musl libc. The issue has been reported to #CPython mid-2014, and still hasn't been fixed (though admittedly the fix seems non-trivial). My workaround is to add an explicit fallback to `libc.so`, e.g.:

```
ctypes.util.find_library("c") or "libc.so"
```

github.com/python/cpython/issu
github.com/psycopg/psycopg/pul
bugs.gentoo.org/923003

#Python #PsycoPG #CTypes #Gentoo

mgorny-nyan (on) :autism:🙀🚂🐧mgorny@pol.social
2024-01-27

Dziś trafiłem na kolejny błąd, wynikający z tego, że `ctypes.util.find_library("c")` nie działa na systemach z #musl libc. Problem zgłoszono do CPythona w połowie roku 2014, i do dziś go nie poprawiono (choć przyznaję, że łatka jest ciut skomplikowana). Moje obejście tego problemu polega na wykorzystaniu `libc.so`, kiedy funkcja nic nie zwraca, np. poprzez:

```
ctypes.util.find_library("c") or "libc.so"
```

github.com/python/cpython/issu
github.com/psycopg/psycopg/pul
bugs.gentoo.org/923003

#Python #PsycoPG #CTypes #CPython #Gentoo

2024-01-24

Möp:

```sql
-- works, true
select 1 :: smallint = 1 :: bigint;
-- does not work
select 1 :: smallint <@ int8range(1,2);
-- ERROR: operator does not exist: smallint <@ int8range
```

Guess what psycopg passes in when giving it a python int param...

#postgresql #psycopg

Nsukami _ | 巣神lemeteore
2023-12-24

The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources. 🤭 pypi.org/project/psycopg2-bina

I plead guilty your honor

TAKAHASHI Shuuji 🌏🌈✨shuuji3
2023-09-01

My next project is the Japanese translation of psycopg3 documentation. 🔌🐘 I expected there's already some past existing work for psycopg2, but couldn't find any, a bit surprisingly.

Only the home and async pages were finished!

(Screenshot is locally built from github.com/shuuji3/psycopg/com)

Screenshot of working Japanese translation of psycopg3 documentations. Built from https://github.com/shuuji3/psycopg/blob/i18n/ja/docs/advanced/async.rst
2023-07-26

Building Binary #Python Dependencies For AMD64 And ARM64 #AWS lambda Layers link.medium.com/7KAv7cW5KBb

*Specifically, a #Psycopg Python Lambda Layer For #SQLAlchemy And #Postgres

* Using Docker because it's impossible on #MacOS

Darian Moodydjm
2023-04-06

Yesterday, on Django 4.2, we bumped from v2 to the v3 but suffered an increase in locks & connection waiting during some periods of heavy work on the same hardware (Heroku pg with server-side pgBouncer).

Operational reasons (shipping!) stop us investigating this in more depth right now but thought this warning may be of help to someone.

Paolo Melchiorrepaulox@fosstodon.org
2023-04-03

Django 4.2 LTS has just been released. 🎉

From the Django official post: 💡

"The release notes cover the farrago of new features in detail, but a few highlights are:
- psycopg version 3 support
- comments on columns and tables
- support for asynchronous streaming responses, and async interfaces for related managers and models"

More info: 👇
djangoproject.com/weblog/2023/

#Django #Python #Release #LTS #Psycopg #Async

CC @psycopg

Paolo Melchiorrepaulox@fosstodon.org
2022-12-19

@djangochat @carlton @wsvincent Continuing to talk about Django and PostgreSQL, a Django Chat episode on the recent merge of the Psycopg 3.1+ backend with @felixxm , @apollo13 and @psycopg would be interesting. 🎙️

As an anticipation we had a great keynote from Daniele Varrazzo at PyCon Italia 2022 @pycon 🇮🇹
youtu.be/w41jxB37n8M

#psycopg #psycopg3 #django #djangochat #python #postgresql #orm

Paolo Melchiorrepaulox@fosstodon.org
2022-12-15

This morning @felixxm merged the branch for @psycopg 3 support in Django 🎉

I opened the related issue 13 months ago and since then many developers have worked on the PR based on the work of Daniele Varrazzo 👏

I thank everyone who made this achievement possible starting from @apollo13 to @felixxm but also Simon Charette, Tim Graham, @adamchainz, @carlton and @davidsmith 🙏

I'm sure that both Django and Psycopg will benefit from this success ✨

#django #psycopg3 #psycopg

code.djangoproject.com/ticket/

Paolo Melchiorrepaulox@fosstodon.org
2022-12-13

RT @psycopg

Psycopg 3.1.5 released. A few bug fixes and *big* speedup improvements: networking, namedtuples, arrays...

Try it out now! 😄🚀

github.com/psycopg/psycopg/blo

#psycopg #python #postgresql #speedup

Paolo Melchiorrepaulox@fosstodon.org
2022-12-03

The new @psycopg v3 backend for @django 4.2 is quite ready ✨

It would be very useful if you could test it in your own project to find any errors and measure variations in performance 📈

You can already find some tests in the PR ⚗️

#Django #Psycopg #PostgreSQL #Async #ORM #Database #Python #Postgres

github.com/django/django/pull/

Paolo Melchiorrepaulox@fosstodon.org
2022-11-06

@Crocmagnon @psycopg has a lot of new features, you can read about them directly in its website 👇
psycopg.org/

#psycopg3 #psycopg

Paolo Melchiorrepaulox@fosstodon.org
2022-11-06

In the @django project a great deal of work is underway to add @psycopg support to the #ORM 🐍🐘
Simon and Florian are doing a great job getting PR merged before #Django 4.2 is released ⚡️
You too could help by trying to test this #PR in your projects 👇
github.com/django/django/pull/

#django #psycopg #psycopg3 #postgresql

2022-09-19

Vous connaissez #psycopg le connecteur #Python à un serveur #PostgreSQL, maintenu par Daniele Varrazzo ? Notre développeur @dlax y contribue. Cette semaine, il aborde le *pipeline mode* => dali.bo/202209_psycopg
#openSource #SGBD #logicielsLibres

2022-06-02

#psycopg est un connecteur #Python à un serveur #PostgreSQL. L'un de nos développeurs, Denis, vous parle plus spécifiquement des #rowFactories => dali.bo/202206_psycopg

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst