Unix Technical Forum

BUG #3429: table named MULTIPOLYGON

This is a discussion on BUG #3429: table named MULTIPOLYGON within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3429 Logged by: James White Email address: jbw20032@earthlink.net PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:57 AM
James White
 
Posts: n/a
Default BUG #3429: table named MULTIPOLYGON


The following bug has been logged online:

Bug reference: 3429
Logged by: James White
Email address: jbw20032@earthlink.net
PostgreSQL version: 8.2.3
Operating system: debian etch amd64
Description: table named MULTIPOLYGON
Details:

I accidentally created a table name multipolygon with the typo:

ogr2ogr -f "PostgreSQL" -nln sw_watersheds -nln MULTIPOLYGON
PG:dbname=swgap USGSwatersheds.shp


Using the \dt command I get a line

public | MULTIPOLYGON | table | postgres

However with this command

swgap=# \d multipolygon
Did not find any relation named "multipolygon".
swgap=# \dt multipolygon
No matching relations found.

I cannot drop this table

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

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:57 AM
Larry Rosenman
 
Posts: n/a
Default Re: BUG #3429: table named MULTIPOLYGON

try:
DROP TABLE "MULTIPOLYGON";

That should do it.
(pardon the top post).



--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

-----Original Message-----
From: pgsql-bugs-owner@postgresql.org
[mailtogsql-bugs-owner@postgresql.org] On Behalf Of James White
Sent: Thursday, July 05, 2007 12:20 PM
To: pgsql-bugs@postgresql.org
Subject: [BUGS] BUG #3429: table named MULTIPOLYGON


The following bug has been logged online:

Bug reference: 3429
Logged by: James White
Email address: jbw20032@earthlink.net
PostgreSQL version: 8.2.3
Operating system: debian etch amd64
Description: table named MULTIPOLYGON
Details:

I accidentally created a table name multipolygon with the typo:

ogr2ogr -f "PostgreSQL" -nln sw_watersheds -nln MULTIPOLYGON
PG:dbname=swgap USGSwatersheds.shp


Using the \dt command I get a line

public | MULTIPOLYGON | table | postgres

However with this command

swgap=# \d multipolygon
Did not find any relation named "multipolygon".
swgap=# \dt multipolygon
No matching relations found.

I cannot drop this table

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

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


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 10:57 AM
tomas@tuxteam.de
 
Posts: n/a
Default Re: BUG #3429: table named MULTIPOLYGON

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jul 05, 2007 at 03:22:17PM -0500, Larry Rosenman wrote:
> try:
> DROP TABLE "MULTIPOLYGON";
>
> That should do it.
> (pardon the top post).
>
>
>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 512-248-2683 E-Mail: ler@lerctr.org
> US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
>
> -----Original Message-----
> From: pgsql-bugs-owner@postgresql.org
> [mailtogsql-bugs-owner@postgresql.org] On Behalf Of James White
> Sent: Thursday, July 05, 2007 12:20 PM
> To: pgsql-bugs@postgresql.org
> Subject: [BUGS] BUG #3429: table named MULTIPOLYGON
>
>
> The following bug has been logged online:
>
> Bug reference: 3429
> Logged by: James White
> Email address: jbw20032@earthlink.net
> PostgreSQL version: 8.2.3
> Operating system: debian etch amd64
> Description: table named MULTIPOLYGON
> Details:
>
> I accidentally created a table name multipolygon with the typo:
>
> ogr2ogr -f "PostgreSQL" -nln sw_watersheds -nln MULTIPOLYGON


Sorry, I do't know what the above command does, but it seems to create
the table with an uppercase name. Then...

>
> Using the \dt command I get a line
>
> public | MULTIPOLYGON | table | postgres
>
> However with this command
>
> swgap=# \d multipolygon


.... just try here \d "MULTIPOLYGON" (with double quotes). This should
work.

PostgreSQL's representation of "case insensitive" names is actually
lower-case. Thus if you use a name unquoted, it'll be implicitly
converted to lower case.

HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGjbt2Bcgs9XrR2kYRArfLAJ4hVR8PAxl5Fnn+1OMfJm yHL/X2EQCfSfgy
CsZnEfiCna0tXGclY7emzNA=
=3n6X
-----END PGP SIGNATURE-----


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com