Re: pgAdmin3 bug

Lists: pgadmin-support
From: Stephen Oberholtzer <oliverklozoff(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: pgAdmin3 bug
Date: 2004-08-18 03:22:49
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support

I downloaded the latest win32 version - dated 8/17, although the
executable was dated 8/15?

(This is where it pays off to do things different from everyone else.)

I created for myself an account named "stevie-o". Thus, to grant
access to the database, I have to do this:

grant select on foo to "stevie-o";

However, the little preview window that shows the script to recreate
the table gets a teeny little bit overzealous with the quote marks:

GRANT SELECT ON TABLE foo TO "\""stevie-o\""";

--
-- Stevie-O
Real programmers use COPY CON PROGRAM.EXE


From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Stephen Oberholtzer <oliverklozoff(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgAdmin3 bug
Date: 2004-08-18 10:18:42
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support

Stephen Oberholtzer wrote:
> I downloaded the latest win32 version - dated 8/17, although the
> executable was dated 8/15?

This is correct, the new snapshot includes an old executable, with new docs.
>
> However, the little preview window that shows the script to recreate
> the table gets a teeny little bit overzealous with the quote marks:
>
> GRANT SELECT ON TABLE foo TO "\""stevie-o\""";

Don't enter " in the name field. pgAdmin adds them as required.

Regards,
Andreas


From: Stephen Oberholtzer <oliverklozoff(at)gmail(dot)com>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgAdmin3 bug
Date: 2004-08-18 14:07:50
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support

On Wed, 18 Aug 2004 10:18:42 +0000, Andreas Pflug
<pgadmin(at)pse-consulting(dot)de> wrote:
> Stephen Oberholtzer wrote:
> > I downloaded the latest win32 version - dated 8/17, although the
> > executable was dated 8/15?
>
> This is correct, the new snapshot includes an old executable, with new docs.
> >
> > However, the little preview window that shows the script to recreate
> > the table gets a teeny little bit overzealous with the quote marks:
> >
> > GRANT SELECT ON TABLE foo TO "\""stevie-o\""";
>
> Don't enter " in the name field. pgAdmin adds them as required.

I didn't enter " in the name field. The login name is stevie-o.
Because the hyphen is treated as a token separator, the grant
statement (as SQL) needs to look like this:

GRANT SELECT ON TABLE foo TO "stevie-o"

But when pgAdmin3 tries to show the SQL that would recreate table foo,
it appears to be adding two additional pairs of quotation marks.

>
> Regards,
> Andreas
>

--
-- Stevie-O
Real programmers use COPY CON PROGRAM.EXE


From: "Giovanni P(dot) Tirloni" <gpt(at)tirloni(dot)org>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgAdmin3 bug
Date: 2004-08-18 15:23:36
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support


Andreas Pflug disse:
> min(at)pse-consulting(dot)de> wrote:
>
>>
>> I didn't enter " in the name field. The login name is stevie-o.
>> Because the hyphen is treated as a token separator, the grant
>> statement (as SQL) needs to look like this:
>>
>> GRANT SELECT ON TABLE foo TO "stevie-o"
>>
>> But when pgAdmin3 tries to show the SQL that would recreate table foo,
>> it appears to be adding two additional pairs of quotation marks.
>>
>
> Can anybody check this on 7.4? On 8.0 the acl has \" in it, seems this
> is new.
>
> Regards,
> Andreas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

This is pgadmin3 (2004/08/17) with PostgreSQL 7.4.3. It shows:

GRANT SELECT ON TABLE foo TO "\""stevie-o\""";

after I used this on psql:

GRANT SELECT ON TABLE foo TO "stevie-o";

--
Giovanni P. Tirloni


From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Stephen Oberholtzer <oliverklozoff(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgAdmin3 bug
Date: 2004-08-18 17:05:09
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support

min(at)pse-consulting(dot)de> wrote:

>
> I didn't enter " in the name field. The login name is stevie-o.
> Because the hyphen is treated as a token separator, the grant
> statement (as SQL) needs to look like this:
>
> GRANT SELECT ON TABLE foo TO "stevie-o"
>
> But when pgAdmin3 tries to show the SQL that would recreate table foo,
> it appears to be adding two additional pairs of quotation marks.
>

Can anybody check this on 7.4? On 8.0 the acl has \" in it, seems this
is new.

Regards,
Andreas


From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Stephen Oberholtzer <oliverklozoff(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org, gpt(at)tirloni(dot)org
Subject: Re: pgAdmin3 bug
Date: 2004-08-18 20:36:39
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-support

Fixed in CVS, thanks for reporting.

Regards,
Andreas