Re: multi line text data/query ?bug?

From: "Sim Zacks" <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: multi line text data/query ?bug?
Date: 2005-03-23 06:49:31
Message-ID: d1r3lc$1ijq$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

While I would agree with you that from a purely technical standpoint, the
user inserted into the database a CRLF and a query with just an LF does not
exactly match that, from a users and more practical perspective, that does
not make sense at all. That is why I surrounded the word bug in ??.

I would say that from a users perspective it qualifies as a bug because they
did not put in specific binary characters. They want a newline. From a
database standards perspective, I would argue that any database that allows
connections from a client without qualifying a required operating system
should be OS neutral.

I would say it is a bug from a users perspective because the exact same
query works differently from different clients. Since the user does not
choose what binary characters to put in, they are invisible to the user.
Anything that is completely invisible to the user should not be considered
valid qualifying data.

As there is no postgresql database standard, such as "all newlines are unix
newlines" it is impossible to write a client that will necessarily return
the data that you want.

This is the exact problem we are having with Python right now, as a Windows
client cannot write a python function to be run on a linux server.

"Peter Eisentraut" <peter_e(at)gmx(dot)net> wrote in message
news:200503221535(dot)07641(dot)peter_e(at)gmx(dot)net(dot)(dot)(dot)
> Am Dienstag, 22. Mrz 2005 08:00 schrieb Sim Zacks:
> > While I was testing an issue in python I discovered a general
> > *nix/windows/mac issue with newlines.
> > The same query will give different results depending on what client
> > executes it.
>
> While that is indoubtedly strange behavior, I can't see how it qualifies
as a
> bug. You press a certain key, and you get exactly the characters that the
> key is defined to produce. That differs between operating systems, but so
do
> a lot of other things.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Klint Gore 2005-03-23 07:04:54 Re: inherited table and rules
Previous Message Shaun Clements 2005-03-23 06:26:03 Re: PHP SQL