Failed to write to history file
Failed to write to history file
От:
michel boekestein <miboinl@gmail.com>
Дата:
Hi,
every time I execute a query using the Query Tool in PGAdmin, the message "Failed to write to history file!" appears.
The queries do execute correctly.
The history file exists, and I can write in it using a text editor.
Changing the path name in pgAdmin's "File|Options|Query tool files | History file path" makes pgAdmin hang.
I am using Windows 7, PostgreSQL 9.1.2, pgAdmin 1.14.1
Thanks in advance for your help,
Michel
Re: Failed to write to history file
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
On Fri, 2012-02-24 at 14:43 +0100, michel boekestein wrote: > Hi, > > > > every time I execute a query using the Query Tool in PGAdmin, the message > "Failed to write to history file!" appears. > > The queries do execute correctly. > > The history file exists, and I can write in it using a text editor. > > Changing the path name in pgAdmin's "File|Options|Query tool files | > History file path" makes pgAdmin hang. > > I am using Windows 7, PostgreSQL 9.1.2, pgAdmin 1.14.1 > Is there any accent in the file path? pgAdmin tries to use it as a UTF8 string, but it may bring some issues with different encodings, just as Windows. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
Re: Failed to write to history file
От:
michel boekestein <miboinl@gmail.com>
Дата:
No, there's no accent in the file path. It's here:
C:\Users\boekestein\AppData\Roaming\postgresql\pgadmin_histoqueries.xml
Op 25 februari 2012 00:26 schreef Guillaume Lelarge <guillaume@lelarge.info> het volgende:
Is there any accent in the file path? pgAdmin tries to use it as a UTF8On Fri, 2012-02-24 at 14:43 +0100, michel boekestein wrote:
> Hi,
>
>
>
> every time I execute a query using the Query Tool in PGAdmin, the message
> "Failed to write to history file!" appears.
>
> The queries do execute correctly.
>
> The history file exists, and I can write in it using a text editor.
>
> Changing the path name in pgAdmin's "File|Options|Query tool files |
> History file path" makes pgAdmin hang.
>
> I am using Windows 7, PostgreSQL 9.1.2, pgAdmin 1.14.1
>
string, but it may bring some issues with different encodings, just as
Windows.
--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com
Re: Failed to write to history file
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
On Mon, 2012-02-27 at 11:34 +0100, michel boekestein wrote: > No, there's no accent in the file path. It's here: > > C:\Users\boekestein\AppData\Roaming\postgresql\pgadmin_histoqueries.xml > Please, don't top-post. OK, so, if it cannot write in this file, is the file writable? can you open it, and change a query for example? -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
Re: Failed to write to history file
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
On Mon, 2012-02-27 at 22:07 +0100, Michel Boekestein wrote: > > > > Op 27 feb. 2012 om 15:28 heeft Guillaume Lelarge het volgende geschreven: > > > On Mon, 2012-02-27 at 11:34 +0100, michel boekestein wrote: > >> No, there's no accent in the file path. It's here: > >> > >> C:\Users\boekestein\AppData\Roaming\postgresql\pgadmin_histoqueries.xml > >> > > > > Please, don't top-post. > > > > OK, so, if it cannot write in this file, is the file writable? can you > > open it, and change a query for example? > > > > > > > > yes. If I send you a patch to get more informations, can you apply it and compile pgAdmin? If you cannot compile it, can you send me your history file and the query you execute before you get this message? Oh, and can you check on 1.14.2, see if it still fails? -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
Re: Failed to write to history file
От:
Michel Boekestein <miboinl@gmail.com>
Дата:
Op 27 feb. 2012 om 15:28 heeft Guillaume Lelarge het volgende geschreven: > On Mon, 2012-02-27 at 11:34 +0100, michel boekestein wrote: >> No, there's no accent in the file path. It's here: >> >> C:\Users\boekestein\AppData\Roaming\postgresql\pgadmin_histoqueries.xml >> > > Please, don't top-post. > > OK, so, if it cannot write in this file, is the file writable? can you > open it, and change a query for example? > > > yes.
Re: Failed to write to history file
Op 27 februari 2012 22:28 schreef Guillaume Lelarge <guillaume@lelarge.info> het volgende:
If I send you a patch to get more informations, can you apply it andOn Mon, 2012-02-27 at 22:07 +0100, Michel Boekestein wrote:
>
>
>
> Op 27 feb. 2012 om 15:28 heeft Guillaume Lelarge <guillaume@lelarge.info> het volgende geschreven:
>
> > On Mon, 2012-02-27 at 11:34 +0100, michel boekestein wrote:
> >> No, there's no accent in the file path. It's here:
> >>
> >> C:\Users\boekestein\AppData\Roaming\postgresql\pgadmin_histoqueries.xml
> >>
> >
> > Please, don't top-post.
> >
> > OK, so, if it cannot write in this file, is the file writable? can you
> > open it, and change a query for example?
> >
> >
> >
>
> yes.
compile pgAdmin?
I'm afraid I can't
If you cannot compile it, can you send me your history file and the
query you execute before you get this message?
It executes before every query. See attachment for the history file.
Oh, and can you check on 1.14.2, see if it still fails?
Yep, it still fails
Re: Failed to write to history file
От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
On Thu, 2012-03-08 at 17:27 +0100, michel boekestein wrote: > > > Op 27 februari 2012 22:28 schreef Guillaume Lelarge > het volgende: > On Mon, 2012-02-27 at 22:07 +0100, Michel Boekestein wrote: > > > > > > > > Op 27 feb. 2012 om 15:28 heeft Guillaume Lelarge > het volgende geschreven: > > > > > On Mon, 2012-02-27 at 11:34 +0100, michel boekestein > wrote: > > >> No, there's no accent in the file path. It's here: > > >> > > >> C:\Users\boekestein\AppData\Roaming\postgresql > \pgadmin_histoqueries.xml > > >> > > > > > > Please, don't top-post. > > > > > > OK, so, if it cannot write in this file, is the file > writable? can you > > > open it, and change a query for example? > > > > > > > > > > > > > yes. > > > If I send you a patch to get more informations, can you apply > it and > compile pgAdmin? > > > I'm afraid I can't > > If you cannot compile it, can you send me your history file > and the > query you execute before you get this message? > > It executes before every query. See attachment for the history file. > > > Oh, and can you check on 1.14.2, see if it still fails? > > Yep, it still fails > Well. I tried with your file, and don't have any issues. I'm unable to reproduce your issue. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com