pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Josh Berkus <josh@agliodbs.com>
Cc: Willy-Bas Loos <willybas@gmail.com>
Cc: pgsql-admin@postgresql.org
Cc: pgadmin-support@postgresql.org
Subject: Re: [ADMIN] syntax error for no apparent reason
Date: Sat, 04 Dec 2010 13:46:15 +0100
Message-ID: <4CFA3817.2020400@lelarge.info> (raw)
In-Reply-To: <4CF99D40.90306@agliodbs.com>
References: <AANLkTin-uSv1ithFyM1ppEQMga7rv2uJASCAeroif9aJ@mail.gmail.com>
	<4CF99D40.90306@agliodbs.com>

Le 04/12/2010 02:45, Josh Berkus a écrit :
> 
>> I've encountered this before, psql gives me a syntax error for no clear
>> reason. It's allways on the first character of a sql file.
>> I think that there must be some strange character code at the first
>> position, maybe it is because i share a ntfs partition with the windows
>> installation on my laptop and move files around.
> 
> Yeah, this is caused by pgadmin adding a unicode marker at the first
> position of the file.  If you uncheck "Read and Write Unicode UTF-8
> Files" in the preferences, this issue should go away.
> 

It goes away because the file is no longer in UTF-8, and that may not be
what the OP wants.

I have a patch ready to be commited that will handle this. But you will
need next pgAdmin's release.


-- 
Guillaume
 http://www.postgresql.fr
 http://dalibo.com



view thread (4+ messages)  latest in thread

Message-ID: <4CFA3817.2020400@lelarge.info>
Permalink:  ../4CFA3817.2020400@lelarge.info/
Also on:    postgresql.org/message-id/4CFA3817.2020400@lelarge.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: guillaume@lelarge.info, josh@agliodbs.com, willybas@gmail.com, pgadmin-support@postgresql.org
  Subject: Re: [ADMIN] syntax error for no apparent reason
  In-Reply-To: <4CFA3817.2020400@lelarge.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox