Unix Technical Forum

Re: problem with CR+LF in files in psql \i command

This is a discussion on Re: problem with CR+LF in files in psql \i command within the Pgsql Patches forums, part of the PostgreSQL category; --> Hi Bruce, > Function and comments are just _strings_ to PostgreSQL, so we have no > good way of ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 11:11 PM
Euler Taveira de Oliveira
 
Posts: n/a
Default Re: problem with CR+LF in files in psql \i command

Hi Bruce,

> Function and comments are just _strings_ to PostgreSQL, so we have no
> good way of cleaning the output up, unless we hack pg_dump to somehow
> change line endings when outputting such information, though
> currently we
> don't. The would perhaps cause problems in viewing the functions if
> restored in Win32.
>

Agreed.

> Fixing it at the \i level is too crude because it might remove
> carriage
> returns that are wanted in the input stream.
>

Agreed.

> We are open to ideas on how to improve this.
>

What about another option to pg_dump to indicate such a thing? Maybe -l
or --change-line [m|w|u]

Another TODO item?


Euler Taveira de Oliveira
euler[at]yahoo_com_br

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/

---------------------------(end of broadcast)---------------------------
TIP 8: 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 01:30 PM.


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