Re: Not able to update some rows in a table

2018-07-02 Thread Marco Fochesato
> > > That seems like a remarkably strange definition of a primary key. > Are all of those columns really identification of an object, and > not properties of the object? > > In any case, I'll bet a lot of money that your can't-update problem > is related to the fuzzy behavior of floating-point co

Re: Not able to update some rows in a table

2018-07-02 Thread Tom Lane
Marco Fochesato writes: > CREATE TABLE public.forniture_ee > ( > id_cliente integer NOT NULL, > pod character varying(14) NOT NULL, > id_fornitore integer NOT NULL, > mese integer NOT NULL, > anno integer NOT NULL, > imponibile_fornitura double precision NOT NULL, > lettura character

Re: Not able to update some rows in a table

2018-07-02 Thread Charles Clavadetscher
> On 02.07.2018, at 17:59, Marco Fochesato wrote: > > >> >> I would suggest writing a self-contained script that creates the table, >> inserts a single record, and updates that record. Present that for >> consideration along with a description or capture of the results of running >> the s

Re: Not able to update some rows in a table

2018-07-02 Thread Charles Clavadetscher
>> On 02.07.2018, at 17:59, Marco Fochesato wrote: >> >> >>> >>> I would suggest writing a self-contained script that creates the table, >>> inserts a single record, and updates that record. Present that for >>> consideration along with a description or capture of the results of running >>

Re: Not able to update some rows in a table

2018-07-02 Thread Rob Sargent
On 07/02/2018 09:59 AM, Marco Fochesato wrote: I would suggest writing a self-contained script that creates the table, inserts a single record, and updates that record.  Present that for consideration along with a description or capture of the results of running the script on

Re: Not able to update some rows in a table

2018-07-02 Thread David G. Johnston
On Mon, Jul 2, 2018 at 8:59 AM, Marco Fochesato wrote: > > >> I would suggest writing a self-contained script that creates the table, >> inserts a single record, and updates that record. Present that for >> consideration along with a description or capture of the results of running >> the script

Re: Not able to update some rows in a table

2018-07-02 Thread Marco Fochesato
> > I would suggest writing a self-contained script that creates the table, > inserts a single record, and updates that record. Present that for > consideration along with a description or capture of the results of running > the script on your machine. > > But not all the records fail the update..

Re: Not able to update some rows in a table

2018-07-02 Thread David G. Johnston
On Mon, Jul 2, 2018 at 8:38 AM, Marco Fochesato wrote: > anything else to make the situation more clear (like errors in the >> logfile, or anything else you think is relevant) >> > No errors in the GUI, no errors in PgAdmin.log > > I would suggest writing a self-contained script that creates the

Re: Not able to update some rows in a table

2018-07-02 Thread Marco Fochesato
> > postgres version > 10, but I have loaded the database in older versions of Postgresql and the problem remain. > your table structure > CREATE TABLE public.forniture_ee ( id_cliente integer NOT NULL, pod character varying(14) NOT NULL, id_fornitore integer NOT NULL, mese integer NOT NUL

Re: Not able to update some rows in a table

2018-07-02 Thread Adrian Klaver
On 07/02/2018 08:31 AM, Marco Fochesato wrote: Please reply to list also. Ccing list. Do you mean the Primary Key is constructed from 20 columns? yes. Are there any error messages and if so what are they? No error messages To answer your questions will need to see(per previous

Re: Not able to update some rows in a table

2018-07-02 Thread Adrian Klaver
On 07/02/2018 07:51 AM, Marco Fochesato wrote: Dear all, I have a table with 21 columns. Primary key is done with 20 of these colums. Do you mean the Primary Key is constructed from 20 columns? I have 3.313 records. I don't know why, but I'm not able to update some of these records. What i

Re: Not able to update some rows in a table

2018-07-02 Thread Moreno Andreo
Il 02/07/2018 16:51, Marco Fochesato ha scritto: Dear all, I have a table with 21 columns. Primary key is done with 20 of these colums. I have 3.313 records. I don't know why, but I'm not able to update some of these records. I don't understand, it seems that I'm not able to fetch. Could you pos

Re: Not able to update some rows in a table

2018-07-02 Thread Fabio Pardi
Hi Marco, I think more information would give to us a better picture. can you please post the following? postgres version your table structure how you are updating the records if the problem is reproducible directly from the postgres prompt how you are fetching results after the update anyt

Re: Not able to update some rows in a table

2018-07-02 Thread Robert Zenz
> I have a table with 21 columns. > Primary key is done with 20 of these colums. Oh, okay. What data types do these encompass? > I don't know why, but I'm not able to update some of these records. > I don't understand, it seems that I'm not able to fetch. You mean you can't query them with all 2

Not able to update some rows in a table

2018-07-02 Thread Marco Fochesato
Dear all, I have a table with 21 columns. Primary key is done with 20 of these colums. I have 3.313 records. I don't know why, but I'm not able to update some of these records. I don't understand, it seems that I'm not able to fetch. It happens with Pgadmin, with Python Psycopg2 and also through L