dbTalk Databases Forums  

Can I COPY a VIEW to a File

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Can I COPY a VIEW to a File in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kumar S
 
Posts: n/a

Default Can I COPY a VIEW to a File - 09-24-2004 , 11:11 AM






Hi Group,
I want to copy a view to a output file.

=> copy test_uniqueprobeset to
'/temp/test_uniqueprobeset_focus';
ERROR: cannot copy from view
"test_uniqueprobeset_focus"


Is there are wat to capture content of the view.

Please help.

thanks
Kumar

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

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


Reply With Quote
  #2  
Old   
Oliver Fromme
 
Posts: n/a

Default Re: Can I COPY a VIEW to a File - 09-24-2004 , 11:26 AM







Kumar S wrote:
Quote:
Hi Group,
I want to copy a view to a output file.

=> copy test_uniqueprobeset to
'/temp/test_uniqueprobeset_focus';
ERROR: cannot copy from view
"test_uniqueprobeset_focus"

Is there are wat to capture content of the view.
I would suggest you SELECT the view INTO a temporary table,
then COPY that table. See the SQL reference manual on the
"SELECT INTO" command.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"That's what I love about GUIs: They make simple tasks easier,
and complex tasks impossible."
-- John William Chambless

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #3  
Old   
Kumar S
 
Posts: n/a

Default Re: Can I COPY a VIEW to a File - 09-24-2004 , 11:49 AM



Thank you Oliver.
It worked.

-Kumar.


--- Oliver Fromme <olli (AT) lurza (DOT) secnetix.de> wrote:

Quote:
Kumar S wrote:
Hi Group,
I want to copy a view to a output file.

=> copy test_uniqueprobeset to
'/temp/test_uniqueprobeset_focus';
ERROR: cannot copy from view
"test_uniqueprobeset_focus"

Is there are wat to capture content of the view.

I would suggest you SELECT the view INTO a temporary
table,
then COPY that table. See the SQL reference manual
on the
"SELECT INTO" command.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr.
2, 80538 München
Any opinions expressed in this message may be
personal to the author
and may not necessarily reflect the opinions of
secnetix in any way.

"That's what I love about GUIs: They make simple
tasks easier,
and complex tasks impossible."
-- John William Chambless





__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 3: 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.