Please encourage PsycoPG 2 usage (not 1!)

12 views
Skip to first unread message

Nicola Larosa (tekNico)

unread,
Feb 8, 2007, 10:30:17 AM2/8/07
to Django developers
Dear devs,
please apply the patch in ticket #3364 as soon as possible.

There's still people around that do not use PsycoPG 2, because of that
obsolete note in doc/install.txt .

Thank you.

--
Nicola Larosa - http://www.tekNico.net/

I've heard that some people have a saying: "Pain is weakness leaving
the body." If that's true, then fear is also weakness leaving the
mind. So, go ahead and do what you are afraid you can't. It is not the
way to an easy life, only a worthwhile one.
-- Phillip J. Eby, August 2006

Kenneth Gonsalves

unread,
Feb 8, 2007, 7:16:26 PM2/8/07
to django-d...@googlegroups.com

On 08-Feb-07, at 9:00 PM, Nicola Larosa (tekNico) wrote:

> There's still people around that do not use PsycoPG 2, because of that
> obsolete note in doc/install.txt .

i still use psycopg1 because i prefer it

--

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/


Marc Fargas Esteve

unread,
Feb 9, 2007, 4:38:55 AM2/9/07
to django-d...@googlegroups.com
And I use windows 3.1 'cause I prefer it! Just joking ;)

But psycopg1 is obsolete so newcomers should be recommended to version
use 2 unless there are still outstanding issues with it. They can
always go to psycopg1 if they want ;)

Kenneth Gonsalves

unread,
Feb 9, 2007, 4:59:23 AM2/9/07
to django-d...@googlegroups.com

On 09-Feb-07, at 3:08 PM, Marc Fargas Esteve wrote:

> But psycopg1 is obsolete

in what way is it obsolete? works fine for me - I dont believe in
upgrading to a new and backwardly incompatible version just because
it is new. What are they benefits of pyscopg2 over 1?

Marc Fargas Esteve

unread,
Feb 9, 2007, 6:05:10 AM2/9/07
to django-d...@googlegroups.com
It is obsole because upstream says so:
# PsycopgOne -- the original psycopg 1.1.x (now obsoleted by psycopg 2)
# PsycopgTwo -- psycopg 2.0, the one you shall use
(from: http://www.initd.org/tracker/psycopg/wiki)

If upstream says something is obsolete you should stop using it ;) On
the benefits I can think of: "Because it is the current version, hence
the maintained one" and you should not encourage newbies to use things
that have been stated as obsolete by it's authors.

And something released six months ago (version 2.0 was released on 8th
June 2006) is not that new. the matter is: "Does django has any issue
when moving from 1.0 to 2.0"? if it has no issue we shouldn't be
encouraging the use of the obsolete version.

I do not say "Drop pyscopg1 support" I just say that we should not be
encouraging the use of something stated as obsolete unless we have an
important reason to do so.

About the "hence the maintained one" psycopg1 is unmaintained since
8th October 2005.

To check the dates yourself:
* http://initd.org/pub/software/psycopg/ChangeLog-1.1
* http://initd.org/pub/software/psycopg/ChangeLog-2.0

Cheers,
Marc

On 2/9/07, Kenneth Gonsalves <law...@thenilgiris.com> wrote:
>
>

Kenneth Gonsalves

unread,
Feb 9, 2007, 6:29:04 AM2/9/07
to django-d...@googlegroups.com

On 09-Feb-07, at 4:35 PM, Marc Fargas Esteve wrote:

> It is obsole because upstream says so:
> # PsycopgOne -- the original psycopg 1.1.x (now obsoleted by
> psycopg 2)
> # PsycopgTwo -- psycopg 2.0, the one you shall use
> (from: http://www.initd.org/tracker/psycopg/wiki)
>
> If upstream says something is obsolete you should stop using it ;) On
> the benefits I can think of: "Because it is the current version, hence
> the maintained one" and you should not encourage newbies to use things
> that have been stated as obsolete by it's authors.

i am not trolling here. nor do i want to get into any flame wars.
But, i feel the authors went on the wrong track in 2 and should have
stuck to 1. Apart from the authors' opinion, i dont see any other
compelling reason for the switch.

Michael Radziej

unread,
Feb 9, 2007, 7:07:47 AM2/9/07
to django-d...@googlegroups.com
Marc Fargas Esteve:

> It is obsole because upstream says so:
> # PsycopgOne -- the original psycopg 1.1.x (now obsoleted by psycopg 2)
> # PsycopgTwo -- psycopg 2.0, the one you shall use
> (from: http://www.initd.org/tracker/psycopg/wiki)
>
> If upstream says something is obsolete you should stop using it ;)

Doesn't convince me. And they still fix bugs. From their web site:

"""Important: psycopg 1.1.x is not under active development anymore.
Bugs are still fixed but no new features will be added for any
reason."""

> On
> the benefits I can think of: "Because it is the current version, hence
> the maintained one" and you should not encourage newbies to use things
> that have been stated as obsolete by it's authors.

Many Linux distributions have packages for psycopg1 and not for
psycopg2. That's reason enough to use the old one.

Changing the message in the documentation is another thing. psycopg2
is stable, and so the text should be updated.

Michael


--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100

http://www.noris.de - The IT-Outsourcing Company

Carlo C8E Miron

unread,
Feb 9, 2007, 9:40:59 AM2/9/07
to django-d...@googlegroups.com
2007/2/9, Marc Fargas Esteve <tele...@gmail.com>:
[...]

> And something released six months ago (version 2.0 was released on 8th
> June 2006) is not that new.
[...[

And, of course:
* http://initd.org/tracker/psycopg/changeset/759

where you can easly spot a lovely Django tribute from fog. ;o)

C8E
(grinning)

--
Disclaimer:
If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient".
2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it
lends itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.

Ivan Sagalaev

unread,
Feb 9, 2007, 2:24:15 PM2/9/07
to django-d...@googlegroups.com
Marc Fargas Esteve wrote:
> But psycopg1 is obsolete so newcomers should be recommended to version
> use 2 unless there are still outstanding issues with it.

Am I right that psycopg2 extracts string as unicode (I really don't
know)? If yes then unicode will go straight into models' attributes and
it will break people's code from time to time as recent discussions show.

Reply all
Reply to author
Forward
0 new messages