[Python-Dev] bsddb

Jesus Cea jcea at jcea.es
Thu Sep 4 21:00:06 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oleg Broytmann wrote:
>    Once I upgraded Python on a Windows computer... I think it was 2.2 to
> 2.3 upgrade - and all my bsddb databases stopped working. I cannot call
> this "improvement". I didn't have db_upgarde on that computer (or I didn't
> know about it). Does PyBSDDB have db_upgrade in the distribution? Does
> Python distribution have db_upgrade?

I can't comment about bsddb status before my maintenance era (since
March or so). But current release:

http://www.jcea.es/programacion/pybsddb_doc/db.html#upgrade

"""
[jcea at tesalia Modules]$ grep -i upgrade *
_bsddb.c:DB_upgrade(DBObject* self, PyObject* args)
_bsddb.c:    if (!PyArg_ParseTuple(args,"s|i:upgrade", &filename, &flags))
_bsddb.c:    err = self->db->upgrade(self->db, filename, flags);
_bsddb.c:    MAKE_ENTRY(nupgrade);
_bsddb.c:    {"upgrade",         (PyCFunction)DB_upgrade,
METH_VARARGS},
_bsddb.c:    ADD_INT(d, DB_UPGRADE);
_bsddb.c:    ADD_INT(d, DB_LOCK_UPGRADE);
_bsddb.c:    ADD_INT(d, DB_LOCK_UPGRADE_WRITE);
_bsddb.c:    ADD_INT(d, DB_LOCK_UPGRADE);
"""

>> Following your reasoning, Python should be
>> keep in 1.0 era, for compatibility sake.
> 
>    Python? No. But persistent data structures? Yes! How many different
> pickle data formats there were since Python 1.0? What is the oldest
> pickle format modern Python can read? (Just using pickle as an example.)

Modern bsddb can read relic bsddb data; just do a "db_upgrade".

>>> -- SQLite implements a subset of SQL - a powerful query language;
>> Yes, a declarative language completely unrelated to Python.
> 
>    Sometimes being unrelated to Python is advantage.

No argument here. My brain just work that way :).

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSMAwLJlgi5GaxT1NAQIKzgP5AeHeGF52DtGs/KMssduQczPnoH5ndgME
/265foN/qp/GM4kgunoOTPGd9kREVmxgduVaY9yNvVkQNH0WW+t+y41CIcwL36lG
EWXb+9eeAkBm7C0fFLwYZnqDva9/n9Ax7SkXHl+SOerL9Eq6rXzFXyHcTfyZtu8i
uI4q4n7nHQA=
=upd8
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list