Chetan Suttraway | 1 Aug 2011 08:28
Favicon

Re: PostgreSQL installation in Windows 7: Error 1935



On Mon, Aug 1, 2011 at 3:00 AM, Aakash Goel <catchyouraakash <at> gmail.com> wrote:
Hi,

I am having some trouble installing the db on my Windows 7 machine.

Whenever I try to install from postgresql-9.0.4-1-windows_x64.exe, I get these errors:

Any help is appreciated. Thanks,
Aakash


Please refer the below links:
1.
http://archives.postgresql.org/pgsql-bugs/2010-10/msg00107.php

2.
 http://answers.microsoft.com/en-us/office/forum/office_2007-office_install/error-1935-when-installing-microsoft-office-2007/303b4ab8-abac-413b-8275-af358feef934

3.
http://blogs.msdn.com/astebner/archive/2005/11/10/491653.aspx
http://forums.techarena.in/vista-help/797226.htm
source: http://forums.enterprisedb.com/posts/list/1840.page

Please share the related findings.


Regards,
Chetan

--
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

EnterpriseDB Blog : http://blogs.enterprisedb.com
Follow us on Twitter : http://www.twitter.com/enterprisedb




Deniz Atak | 1 Aug 2011 08:27
Picon
Gravatar

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

Deepak, Tom thanks for answering.

Tom, we have psql 8.1.18. So you are right, this weird message is because of the old version. I will check with my colleague about the possible reasons. What can I do if there is a messed up table?

Regards,
Deniz

On Sat, Jul 30, 2011 at 11:45 PM, Tom Lane <tgl <at> sss.pgh.pa.us> wrote:
Deniz Atak <denizatak <at> gmail.com> writes:
> I am using postgresql on Glassfish server and I have EJB 3.0 for ORM. I am
> trying to run a query in PSQL but receiving following error:

> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 2.0.0.v20091031-r5713): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: could not read
> block 4707 of relation 1663/16384/16564: Success

What Postgres server version is that?

If it's 8.2 or older, this probably indicates a partial block at the end
of the file.  Newer versions produce a more sensible error message for
the case, but that's just cosmetic --- the real problem is a messed-up
table.  Have you had a filesystem corruption or an out-of-disk-space
condition on this machine?

                       regards, tom lane

kalyan kumar | 1 Aug 2011 07:35
Picon
Favicon

Database backup to network folder

Hi,

I am using Postgre SQL 8.3, where I want to backup my entire database. For the same I am using pg_dump.exe. I am able to take the backup of my database in to my local machine. If I want to take the backup into network folder, how to pass "-f" parameter to pg_dump.exe. I am using SMB to implement file copy to network folder.

Thanks in advance.

Regards
Kalyan Kumar Sai
D M | 1 Aug 2011 09:08
Picon

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

I am not sure how big your table is one way we implemented here was we selected the clean rows and outputted it to a csv file. And the rows affected we had to load from the backup, luckily we had the clean backup.

Ex: assume you have 1,2,3,4,5....100 rows and the corrupted is between 60-70. I outputted clean rows from 1-59 and 71-100 to a csv file and loaded in a new table. The corrupted was loaded back from a table. This just One of doing it. There might be more the experts here can answer very well. I am interested to see others answers as well. 

My way is time consuming and if you have a very large table or tables affected it's a nightmare to fix them. 

Good luck with your recovery.
Thanks
Deepak

On Jul 31, 2011, at 11:27 PM, Deniz Atak <denizatak <at> gmail.com> wrote:

Deepak, Tom thanks for answering.

Tom, we have psql 8.1.18. So you are right, this weird message is because of the old version. I will check with my colleague about the possible reasons. What can I do if there is a messed up table?

Regards,
Deniz

On Sat, Jul 30, 2011 at 11:45 PM, Tom Lane <tgl <at> sss.pgh.pa.us> wrote:
Deniz Atak <denizatak <at> gmail.com> writes:
> I am using postgresql on Glassfish server and I have EJB 3.0 for ORM. I am
> trying to run a query in PSQL but receiving following error:

> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 2.0.0.v20091031-r5713): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: could not read
> block 4707 of relation 1663/16384/16564: Success

What Postgres server version is that?

If it's 8.2 or older, this probably indicates a partial block at the end
of the file.  Newer versions produce a more sensible error message for
the case, but that's just cosmetic --- the real problem is a messed-up
table.  Have you had a filesystem corruption or an out-of-disk-space
condition on this machine?

                       regards, tom lane

Simon Riggs | 1 Aug 2011 09:36
Favicon

Re: repmgr and archive_mode

On Sat, Jul 30, 2011 at 7:57 AM, Toby Corkindale
<toby.corkindale <at> strategicdata.com.au> wrote:

> Many thanks for clearing that up! I hadn't realised that you could only change one of the two options on the fly.

The streaming rep options require a restart also...

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

--

-- 
Sent via pgsql-general mailing list (pgsql-general <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Tomas Vondra | 1 Aug 2011 12:21
Picon
Gravatar

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

On 1 Srpen 2011, 8:27, Deniz Atak wrote:
> Deepak, Tom thanks for answering.
>
> Tom, we have psql 8.1.18. So you are right, this weird message is because
> of
> the old version. I will check with my colleague about the possible
> reasons.
> What can I do if there is a messed up table?

First of all, you should find out what caused the mess. This could be
really difficult as it might be a rare hw or sw glitch. Anyway consider
upgrading to 8.1.23 if possible.

If you have a fresh backup (i.e. one with all the data in the table), just
restore it and use it. You may even use just this particular table (just
move it using COPY).

If you need to recover the data, you'll have to play a bit with it as you
need to 'skip' all the corrupted blocks. The  query reports block 4707 is
corrupted - how many blocks does the relation have?

You can skip the blocks using 'ctid' column, which is basically "(block
id, item id)" so to skip block 4707 you can do this

SELECT * FROM table WHERE (ctid < '(4707,0)'::ctid OR ctid >=
'(4708,0)'::ctid)

and if fails with another "could not read block" error, put there another
such condition.

Tomas

--

-- 
Sent via pgsql-general mailing list (pgsql-general <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Deniz Atak | 1 Aug 2011 13:55
Picon
Gravatar

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

Hi Thomas,

thanks for your answer. We decided not to go further with this error, because soon we will have another product that replaces this one. Because I want to learn more about this topic, I did the following:

Before I write your code, I tried:
select oid,ctid,relname from pg_class where ctid='(4707,0)';

but it resulted in:
oid | ctid | relname
-----+------+---------
(0 rows)

Isn't there suppose to be a ctid of '(4707,0)'? Or did I misunderstand what you have written?

Regards,
Deniz

On Mon, Aug 1, 2011 at 1:21 PM, Tomas Vondra <tv <at> fuzzy.cz> wrote:
On 1 Srpen 2011, 8:27, Deniz Atak wrote:
> Deepak, Tom thanks for answering.
>
> Tom, we have psql 8.1.18. So you are right, this weird message is because
> of
> the old version. I will check with my colleague about the possible
> reasons.
> What can I do if there is a messed up table?

First of all, you should find out what caused the mess. This could be
really difficult as it might be a rare hw or sw glitch. Anyway consider
upgrading to 8.1.23 if possible.

If you have a fresh backup (i.e. one with all the data in the table), just
restore it and use it. You may even use just this particular table (just
move it using COPY).

If you need to recover the data, you'll have to play a bit with it as you
need to 'skip' all the corrupted blocks. The  query reports block 4707 is
corrupted - how many blocks does the relation have?

You can skip the blocks using 'ctid' column, which is basically "(block
id, item id)" so to skip block 4707 you can do this

SELECT * FROM table WHERE (ctid < '(4707,0)'::ctid OR ctid >=
'(4708,0)'::ctid)

and if fails with another "could not read block" error, put there another
such condition.

Tomas




Deniz Atak | 1 Aug 2011 10:25
Picon
Gravatar

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

Hi Deepak,

thanks for your answer. Do you have any opinion about how can I find the corrupted rows? Do you know how to read:

"could not read block 4707 of relation 1663/16384/16564"

?
Also, there is one interesting thing: a very similar query like this:

select src_ip,round(sum(size)/175) from table where date>'2011.07.29' and l_date<'2011.07.30' and src_ip='255.255.255.255' group by src_ip;

works fine. But this one doesn't:
select src_ip,round((select sum(t1.size) from table t1)) from table where date>'2011.07.29' and date<'2011.07.30' and src_ip='255.255.255.255'
group by src_ip;

Regards,
Deniz

On Mon, Aug 1, 2011 at 10:08 AM, D M <dm.aeqa <at> gmail.com> wrote:
I am not sure how big your table is one way we implemented here was we selected the clean rows and outputted it to a csv file. And the rows affected we had to load from the backup, luckily we had the clean backup.

Ex: assume you have 1,2,3,4,5....100 rows and the corrupted is between 60-70. I outputted clean rows from 1-59 and 71-100 to a csv file and loaded in a new table. The corrupted was loaded back from a table. This just One of doing it. There might be more the experts here can answer very well. I am interested to see others answers as well. 

My way is time consuming and if you have a very large table or tables affected it's a nightmare to fix them. 

Good luck with your recovery.
Thanks
Deepak

On Jul 31, 2011, at 11:27 PM, Deniz Atak <denizatak <at> gmail.com> wrote:

Deepak, Tom thanks for answering.

Tom, we have psql 8.1.18. So you are right, this weird message is because of the old version. I will check with my colleague about the possible reasons. What can I do if there is a messed up table?

Regards,
Deniz

On Sat, Jul 30, 2011 at 11:45 PM, Tom Lane <tgl <at> sss.pgh.pa.us> wrote:
Deniz Atak <denizatak <at> gmail.com> writes:
> I am using postgresql on Glassfish server and I have EJB 3.0 for ORM. I am
> trying to run a query in PSQL but receiving following error:

> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 2.0.0.v20091031-r5713): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: could not read
> block 4707 of relation 1663/16384/16564: Success

What Postgres server version is that?

If it's 8.2 or older, this probably indicates a partial block at the end
of the file.  Newer versions produce a more sensible error message for
the case, but that's just cosmetic --- the real problem is a messed-up
table.  Have you had a filesystem corruption or an out-of-disk-space
condition on this machine?

                       regards, tom lane


Clodoaldo Neto | 1 Aug 2011 16:09
Picon
Gravatar

Error: operator does not exist: integer = integer

postgresql.x86_64                             8.3.14-1PGDG.rhel5
postgresql-server.x86_64                      8.3.14-1PGDG.rhel5

ERROR:  operator does not exist: integer = integer
LINE 3:            inner join vendedor as v on a.vendedor_id = v.id
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

Any ideas?

Regards, Clodoaldo

Tomas Vondra | 1 Aug 2011 16:13
Picon
Gravatar

Re: ERROR: could not read block 4707 of relation 1663/16384/16564: Success

On 1 Srpen 2011, 13:55, Deniz Atak wrote:
> Hi Thomas,
>
> thanks for your answer. We decided not to go further with this error,
> because soon we will have another product that replaces this one. Because
> I
> want to learn more about this topic, I did the following:
>
> Before I write your code, I tried:
> select oid,ctid,relname from pg_class where ctid='(4707,0)';

You need to select from the relation with relfileid 16564, not from
pg_class. Use this

SELECT relname FROM pg_class WHERE relfilenode = 16564;

and then select from this relation.

And if you want to see the items on block 4707, you can do something like
this:

SELECT * FROM relation WHERE ctid >= '(4707,0)' AND ctid < '(4708,0)';

although it'll probably fail. Maybe "pageinspect" contrib module will tell
you more about the page
(http://www.postgresql.org/docs/current/static/pageinspect.html).

Tomas

--

-- 
Sent via pgsql-general mailing list (pgsql-general <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Gmane