Re: How to insert bulk data with libpq in C?

2018-12-18 Thread Chris Mair
May I ask the proper (fast) way of inserting bulk data and if possible, an example would be very appreciated. Please note that the data I would like to insert contains arrays (float8[]). By the way, my environment is Windows 10, PostgreSQL 11 and compiling with Visual Studio 2017. That wo

Re: How to insert bulk data with libpq in C?

2018-12-18 Thread Chris Mair
May I ask the proper (fast) way of inserting bulk data and if possible, an example would be very appreciated. Please note that the data I would like to insert contains arrays (float8[]). By the way, my environment is Windows 10, PostgreSQL 11 and compiling with Visual Studio 2017. That would

Re: postgresql10-server RPM unpacking of archive failed

2018-12-12 Thread Chris Mair
on a CentOS 7.5 machine with PostgreSQL 10.3 installed from the PGDG yum repo, I have a strange error when trying to update to 10.6. A simple "yum update" updated everything except postgresql10-server.x86_64! That package gives (repeatedly) the error message: Error unpacking rpm package postgre

Re: psql is hanging

2018-11-30 Thread Chris Mair
We're kind of pulling out our hair here, any ideas? You might try issuing the command   analyze; right *before* the command that hangs. Clarification: I meant to say: "put it into the script at the location right before the command, that hangs". Bye, Chris.

Re: psql is hanging

2018-11-30 Thread Chris Mair
We're kind of pulling out our hair here, any ideas? You might try issuing the command analyze; right *before* the command that hangs. The rationale behind this idea is that your script changed data and the "hung" command uses a wrong plan based on outdated statistics. By the time you run

postgresql10-server RPM unpacking of archive failed

2018-11-19 Thread Chris Mair
Hi, on a CentOS 7.5 machine with PostgreSQL 10.3 installed from the PGDG yum repo, I have a strange error when trying to update to 10.6. A simple "yum update" updated everything except postgresql10-server.x86_64! That package gives (repeatedly) the error message: Error unpacking rpm package po

Re: Centos 6.9 and centos 7

2017-12-04 Thread Chris Mair
centos 7 : Time: 3.884 ms centos 6.9 Time: 1.620 ms Is there anything you can advice to solve or identify the problem? Can you run this query 10 times on each server and note the timings? I'd like to see the reproducability of this. Also: both machines are otherwise idle (check with top o

Re: Searching for big differences between values

2017-11-30 Thread Chris Mair
I need to search for big differences between values. [...] Hi, from an SQL point of view this is not difficult, but you need to carefully define a criteria for the outliers. For example, to find values that are more than a standard deviation away from the mean, do something like this: chris=#