dbTalk Databases Forums  

[BUGS] BUG #2867: FULL PATH name problem

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2867: FULL PATH name problem in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ted Petrosky
 
Posts: n/a

Default [BUGS] BUG #2867: FULL PATH name problem - 12-27-2006 , 06:16 PM







The following bug has been logged online:

Bug reference: 2867
Logged by: Ted Petrosky
Email address: tedpet5 (AT) yahoo (DOT) com
PostgreSQL version: 8.2
Operating system: OS X
Description: FULL PATH name problem
Details:

I have been working with WebObjects and the EOModeler. When I tell EOModeler
to examine a table, it comes up with this for the primary key.

ALTER TABLE public.article ADD CONSTRAINT public.article_PK PRIMARY KEY
(entityid);

I must change it to be:
ALTER TABLE public.article ADD CONSTRAINT article_PK PRIMARY KEY
(entityid);
because postgresql doesn't like the 'public.' after the CONSTRAINT. I guess
the question is, should it?

Ted

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2867: FULL PATH name problem - 12-27-2006 , 07:19 PM






"Ted Petrosky" <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
I have been working with WebObjects and the EOModeler. When I tell EOModeler
to examine a table, it comes up with this for the primary key.

ALTER TABLE public.article ADD CONSTRAINT public.article_PK PRIMARY KEY
(entityid);

I must change it to be:
ALTER TABLE public.article ADD CONSTRAINT article_PK PRIMARY KEY
(entityid);
because postgresql doesn't like the 'public.' after the CONSTRAINT. I guess
the question is, should it?
No, I think that'd be a bad idea. The SQL spec does call for a
schema-qualified constraint name here, but that's because they have a
different model of the constraint namespace than we do, to wit, unique
per schema vs. our unique per table. Unless you want to buy into the
SQL naming model, you shouldn't be trying to specify a schema name here.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
  #3  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] BUG #2867: FULL PATH name problem - 12-28-2006 , 07:34 AM



So my problem is that the program EOModeler is forcing
the schema-qualified constraint. I will filed a bug
report with Apple.... Unfortunitily, I believe that
the product has been deprecated.... I have yet to get
eclipse with "entity modeler" working correctly to see
what it does the the name space....

Thanks for the reply

Ted


--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Quote:
"Ted Petrosky" <tedpet5 (AT) yahoo (DOT) com> writes:
I have been working with WebObjects and the
EOModeler. When I tell EOModeler
to examine a table, it comes up with this for the
primary key.

ALTER TABLE public.article ADD CONSTRAINT
public.article_PK PRIMARY KEY
(entityid);

I must change it to be:
ALTER TABLE public.article ADD CONSTRAINT
article_PK PRIMARY KEY
(entityid);
because postgresql doesn't like the 'public.'
after the CONSTRAINT. I guess
the question is, should it?

No, I think that'd be a bad idea. The SQL spec does
call for a
schema-qualified constraint name here, but that's
because they have a
different model of the constraint namespace than we
do, to wit, unique
per schema vs. our unique per table. Unless you
want to buy into the
SQL naming model, you shouldn't be trying to specify
a schema name here.

regards, tom lane


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.