Search Postgresql Archives

Re: DROP CASCADE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29 September 2012 18:08, Andreas <maps.on@xxxxxxx> wrote:
Hi
I encountered something that puzzled me a bit.
Is it expected that DROP table CASCADE drops this table and just the foreign key constraints but not the refering tables?

PG 9.2.1 on WinXP



Hi Andreas,
yes, it is expected, at least according to the documentation: http://www.postgresql.org/docs/9.1/static/ddl-depend.html 

"In this case, it doesn't remove the orders table, it only removes the foreign key constraint."

- Szymon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux