Re: MySQL insert() and instr() equiv

From: "Marco Bizzarri" <marco(dot)bizzarri(at)gmail(dot)com>
To: "Mark Constable" <markc(at)renta(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: MySQL insert() and instr() equiv
Date: 2006-06-18 12:39:50
Message-ID: 3f0d61c40606180539o141a3ci378e66bc5af76293@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Not sure this is the right answer: in older version you could enable
it via the postgresql.conf file, modifing the variable log_statement
and setting that to true. Also, you should check the syslog level
variable in the same file.

Regards
Marco

On 6/17/06, Mark Constable <markc(at)renta(dot)net> wrote:
> On Sunday 18 June 2006 02:33, Tom Lane wrote:
> > > uid is an email address stored in the passwd table as user(at)domain(dot)com
> > > and this construct allows an incoming username such as "user.domain.com"
> > > to be compared to the stored "user(at)domain(dot)com".
>
> > But, if you're not wedded to that particular way, why not use replace()?
>
> I only decided to ditch MySQL tonight so I'm within the first
> 1/2 dozen hours of using pgsql for almost the first time. I've
> lost a fair amount of hair with the basics of db and user setup
> and close to burnout.
>
> > SELECT wpath FROM passwd WHERE uid="\L" OR replace(uid, '@', '.')="\L"
>
> Excellent. Just the double quotes needed to be changed to single
> quotes to avoid this error and replace() indeed works for my needs.
>
> ERROR: column "user.domain.com" does not exist
>
> Another anti-burnout question, how would I turn on the ability
> to view any SQL requests in the logfile ?
>
> No doubt there is an answer in the list archives somewhere but
> my first few searches brought up nothing useful.
>
> --markc
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Marco Bizzarri
http://notenotturne.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erin Sheldon 2006-06-18 14:33:43 Changing array subscripting to zero-offset
Previous Message Bruno Wolff III 2006-06-18 10:07:15 Re: SQL query question