Re: DROP TABLE Appears to Fail

From: Rick Genter <rick(dot)genter(at)gmail(dot)com>
To: rick(dot)genter(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DROP TABLE Appears to Fail
Date: 2011-06-28 22:42:47
Message-ID: BANLkTin3p6=XN2ScVSs8wBC===f5wFDxxg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Silly question, but did you try it with a semicolon after the drop table?

# drop table station_type;

I've noticed that if you are in the middle of a statement and issue a \
command, psql ignores the SQL you've typed in and just does the \ command.

On Tue, Jun 28, 2011 at 3:34 PM, Rich Shepard <rshepard(at)appl-ecosys(dot)com>wrote:

> I cannot recall issuing a DROP TABLE command from psql that did not work,
> but seem to have this as a new experience.
>
> When I look at the database table list with '\d' I see
>
> public | station_type | table | rshepard
> public | station_type_statype_seq | sequence | rshepard
>
> and I want to drop and recreate these with a typo fixed. But, the drop
> commands do not appear to work:
>
> # drop table station_type
>
> # \d
>
> public | station_type | table | rshepard
> public | station_type_statype_seq | sequence | rshepard
>
> I fail to see what I'm doing incorrectly and would appreciate a clue stick
> to set me on the proper path.
>
> TIA,
>
> Rich
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/**mailpref/pgsql-general<http://www.postgresql.org/mailpref/pgsql-general>
>

--
Rick Genter
rick(dot)genter(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2011-06-28 22:51:47 Re: DROP TABLE Appears to Fail
Previous Message Andy Firel 2011-06-28 22:41:13 Re: DROP TABLE Appears to Fail