Thread: pgsql-server/src/interfaces/python pg.py

pgsql-server/src/interfaces/python pg.py

From
darcy@postgresql.org (D'Arcy Cain)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    darcy@postgresql.org    02/11/24 21:15:17

Modified files:
    src/interfaces/python: pg.py

Log message:
    Change the pkey method so that the caller can optionally set the dictionary
    used for the primary key lookup.  This will prevent a database lookup
    for each connection object that gets created.  This could be a significant
    optimization on a busy system.

    Similarly, the get_attnames method allows for the attributes dictionary
    to be installed directly.