Re: Converting to number with given format

2018-09-19 Thread Tim Cross
Gabriel Furstenheim Milerud writes: > Sorry, > So basically what I'm trying to achieve is the following. There is an input > file from the user and a configuration describing what is being inserted. > For example, he might have Last activity which is '-MM-DD HH:mi:ss' and > Join date which

Re: how to know whether query data from memory after pg_prewarm

2018-09-19 Thread Thomas Munro
On Wed, Sep 19, 2018 at 7:44 PM Cédric Villemain wrote: > Le 19/09/2018 à 05:29, Thomas Munro a écrit : > > On Wed, Sep 19, 2018 at 1:35 PM jimmy wrote: > >> I use select pg_prewarm('table1','read','main') to load data of table1 > >> into the memory. > >> when I use select count(1) from table1

Re: Converting to number with given format

2018-09-19 Thread Ken Tanzer
On Wed, Sep 19, 2018 at 6:34 AM Gabriel Furstenheim Milerud < furstenh...@gmail.com> wrote: Maybe that is not possible with numbers? To say in a format something like > "my numbers have comma as decimal separator and no thousands separators" or > "my numbers are point separated and have comma as

Re: Code of Conduct

2018-09-19 Thread Bruce Momjian
On Wed, Sep 19, 2018 at 11:24:29AM +1000, Julian Paul wrote: > It's overly long and convoluted. > > "inclusivity" Is a ideologue buzzword of particular individuals that offer > very little value apart from excessive policing of speech and behaviour > assumed to be a problem where none exist. > >

Re: Code of Conduct

2018-09-19 Thread Kevin Grittner
On Tue, Sep 18, 2018 at 5:28 AM Dave Page wrote: > > The PostgreSQL Core team are pleased to announce that following a long > consultation process, the project’s Code of Conduct (CoC) has now been > finalised and published at https://www.postgresql.org/about/policies/coc/. > > Please take time

help with startup slave after pg_rewind

2018-09-19 Thread Dylan Luong
Hi After promoting slave to master, I completed a pg_rewind of the slave (old master) to the new master. But when I try to start the slave I am getting the following error. 2018-09-20 07:53:51 ACST [20265]: [2-1] db=[unknown],user=replicant app=[unknown],host=10.69.20.22(51271) FATAL: the

Re: Code of Conduct

2018-09-19 Thread Andrew Dunstan
On 09/19/2018 04:27 PM, Kevin Grittner wrote: On Tue, Sep 18, 2018 at 5:28 AM Dave Page wrote: The PostgreSQL Core team are pleased to announce that following a long consultation process, the project’s Code of Conduct (CoC) has now been finalised and published at

*Regarding brin_index on required column of the table

2018-09-19 Thread Durgamahesh Manne
Hi Respected postgres community members I have created BRIN index on few columns of the table without any issues. But i am unable to create BRIN index on one column of the table as i got error listed below [local]:6263 postgres@huawei=# CREATE INDEX brin_idx on huawei using brin ("dFetch");

Re: *Regarding brin_index on required column of the table

2018-09-19 Thread Andreas Kretschmer
Am 19.09.2018 um 15:51 schrieb Durgamahesh Manne: I have created BRIN index on few columns of the table without any issues. But i am unable to create BRIN index on one column of the table as i got error listed below [local]:6263 postgres@huawei=# CREATE INDEX brin_idx on huawei using

Re: *Regarding brin_index on required column of the table

2018-09-19 Thread Durgamahesh Manne
Hi I have complex query like for ex select distinct sub_head."vchSubmittersCode" ,rec."vchFileName" , rec."vchCusipFundIDSubFundID" , rec."vchFundUnitPrice" , sub_head."vchValuationDate" ,rec."vchAdvisorLabel" from "table1" rec join "table2" sub_head on

Re: Code of Conduct plan

2018-09-19 Thread Tatsuo Ishii
>>> Do we want official translations of this? We allow local communities >>> do their own manual translations. However CoC is so important, I feel >>> like we need more for Coc. Good thing with CoC is, it is expected that >>> it would be stable (at least I hope so) and translation works when >>>

Re: Regrading brin_index on required column of the table

2018-09-19 Thread Durgamahesh Manne
On Wed, Sep 19, 2018 at 7:41 PM Igor Neyman wrote: > > > *From:* Durgamahesh Manne [mailto:maheshpostgr...@gmail.com] > *Sent:* Wednesday, September 19, 2018 10:04 AM > *To:* Igor Neyman > *Subject:* Re: Regrading brin_index on required column of the table > > On Wed, Sep 19, 2018 at 7:19 PM

Re: Which is the most stable PostgreSQL version yet present for CentOS 7?

2018-09-19 Thread Andreas Kretschmer
Am 19.09.2018 um 16:08 schrieb Raghavendra Rao J S V: Hi All, Which is the most stable PostgreSQL version yet present for CentOS 7? the latest supported minor version. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com

Regrading brin_index on required column of the table

2018-09-19 Thread Durgamahesh Manne
Hi Respected postgres community members I have created BRIN index on few columns of the table without any issues. But i am unable to create BRIN index on one column of the table as i got error listed below [local]:6263 postgres@huawei=# CREATE INDEX brin_idx on huawei using brin ("dFetch");

RE: Regrading brin_index on required column of the table

2018-09-19 Thread Igor Neyman
From: Durgamahesh Manne [mailto:maheshpostgr...@gmail.com] Sent: Wednesday, September 19, 2018 9:43 AM To: PostgreSQL mailing lists Subject: Regrading brin_index on required column of the table WARNING: This email originated from outside of Perceptron! Please be mindful of PHISHING and

Re: Code of Conduct

2018-09-19 Thread Julian Paul
On 18/09/18 20:27, Dave Page wrote: The PostgreSQL Core team are pleased to announce that following a long consultation process, the project’s Code of Conduct (CoC) has now been finalised and published at https://www.postgresql.org/about/policies/coc/. Please take time to read and understand

Re: Pgbouncer and postgres

2018-09-19 Thread Fabio Pardi
On 19/09/18 15:34, Adrian Klaver wrote: > On 9/19/18 5:40 AM, ncontu wrote: >> Hi Fabio, >> It used to work before, even without installing updates. > > Exactly, the suspicion is that something in the updates changed the behavior > of your system. > Yes, that's the suspicion. Or at least was..

Re: Converting to number with given format

2018-09-19 Thread Adrian Klaver
On 9/19/18 6:33 AM, Gabriel Furstenheim Milerud wrote: Sorry, So basically what I'm trying to achieve is the following. There is an input file from the user and a configuration describing what is being inserted. For example, he might have Last activity which is '-MM-DD HH:mi:ss' and Join

Which is the most stable PostgreSQL version yet present for CentOS 7?

2018-09-19 Thread Raghavendra Rao J S V
Hi All, Which is the most stable PostgreSQL version yet present for CentOS 7? -- Regards, Raghavendra Rao J S V Mobile- 8861161425

Re: *Regarding brin_index on required column of the table

2018-09-19 Thread Durgamahesh Manne
On Wed, Sep 19, 2018 at 8:02 PM Andreas Kretschmer wrote: > > > Am 19.09.2018 um 15:51 schrieb Durgamahesh Manne: > > I have created BRIN index on few columns of the table without any > > issues. But i am unable to create BRIN index on one column of the > > table as i got error listed below > >

Re: *Regarding brin_index on required column of the table

2018-09-19 Thread Andreas Kretschmer
Am 19.09.2018 um 16:43 schrieb Durgamahesh Manne: On Wed, Sep 19, 2018 at 8:02 PM Andreas Kretschmer mailto:andr...@a-kretschmer.de>> wrote: Am 19.09.2018 um 15:51 schrieb Durgamahesh Manne: > I have created BRIN index on few columns of the table without any > issues. But i

Re: Pgbouncer and postgres

2018-09-19 Thread ncontu1
So unexpectedly with the rpms, it installed it on a different place and it is working from command line [root@cmd-dev1 pgbouncer]# /bin/pgbouncer /etc/pgbouncer/pgbouncer.ini -u postgres 2018-09-19 15:38:36.081 46322 LOG File descriptor limit: 1024 (H:4096), max_client_conn: 100, max fds

Re: Code of Conduct

2018-09-19 Thread Fred Pratt
Keep pg open and free. This smells of PC police. This community can police itself Sent from my mobile device. Please pardon my brevity and typos. I am not responsible for changes made by this device’s autocorrect feature. Fred Pratt AmerisourceBergen Manager – IT Infrastructure Micro

Re: Code of Conduct plan

2018-09-19 Thread Tom Lane
Tatsuo Ishii writes: > Now that CoC is out, > https://www.postgresql.org/about/policies/coc/ > I would like to start the translation work. Can somebody suggest me > how I can proceed? Sure, translate away. Probably the -www list is the place to discuss questions like where it would appear on

Re: Pgbouncer and postgres

2018-09-19 Thread Adrian Klaver
On 9/19/18 8:39 AM, ncontu1 wrote: So unexpectedly with the rpms, it installed it on a different place and it is working from command line [root@cmd-dev1 pgbouncer]# /bin/pgbouncer /etc/pgbouncer/pgbouncer.ini -u postgres 2018-09-19 15:38:36.081 46322 LOG File descriptor limit: 1024 (H:4096),

Re: Code of Conduct plan

2018-09-19 Thread Chris Travers
On Thu, Sep 20, 2018 at 5:11 AM Craig Ringer wrote: > On Fri, 14 Sep 2018 at 23:11, James Keener wrote: > >> And if you believe strongly that a given statement you may have made is >>> not objectionable...you should be willing to defend it in an adjudication >>> investigation. >> >> >> So

Re: Converting to number with given format

2018-09-19 Thread Gabriel Furstenheim Milerud
Sorry, So basically what I'm trying to achieve is the following. There is an input file from the user and a configuration describing what is being inserted. For example, he might have Last activity which is '-MM-DD HH:mi:ss' and Join date which is only '-MM-DD' because there is no

Re: Converting to number with given format

2018-09-19 Thread Adrian Klaver
On 9/19/18 5:38 AM, Gabriel Furstenheim Milerud wrote: Hello, I'd like to convert a string number to a number being able to provide the custom format. With dates it works perfectly fine, so that I can do: SELECT to_date('18 09 10', 'YY MM DD') Is there something similar with numbers? SELECT

postgres_fdw chooses remote index scan too rarely

2018-09-19 Thread Jeremy Finzel
First of all, my local system which has postgres_fdw installed is this version: PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.9.3, 64-bit Here are my server configurations (I have tweaked these with no improvement to my issue): - fetch_size=100 - fdw_startup_cost=1000

Re: Code of Conduct plan

2018-09-19 Thread ERR ORR
I see a CoC as an infiltration of the PostgreSQL community which has worked OK since at least 10 years. The project owners have let their care slacken. I request that the project owners EXPEL/EXCOMMUNICATE ALL those who are advancing what can only be seen as an instrument for harassing members of

Re: Converting to number with given format

2018-09-19 Thread Adrian Klaver
On 9/19/18 6:11 AM, Gabriel Furstenheim Milerud wrote: I'm not completely sure that that actually works SELECT to_number('9,134','9V3') =9 SELECT (to_number('9,134', '9')/1000)::numeric(4,3); numeric - 9.134 It's true when it should be false (it should be 9.134). Also it is

Re: Pgbouncer and postgres

2018-09-19 Thread Adrian Klaver
On 9/19/18 5:40 AM, ncontu wrote: Hi Fabio, It used to work before, even without installing updates. Exactly, the suspicion is that something in the updates changed the behavior of your system. I got two interfaces : private IP and localhost Selinux is disabled. I tried installing it

Converting to number with given format

2018-09-19 Thread Gabriel Furstenheim Milerud
Hello, I'd like to convert a string number to a number being able to provide the custom format. With dates it works perfectly fine, so that I can do: SELECT to_date('18 09 10', 'YY MM DD') Is there something similar with numbers? SELECT to_number('9,000', some_format) = 9; SELECT

Re: Pgbouncer and postgres

2018-09-19 Thread ncontu
Hi Fabio, It used to work before, even without installing updates. I got two interfaces : private IP and localhost Selinux is disabled. I tried installing it from source, from git repo. Can't find the RPM, do you have any link for centos7? I tried both /etc/init.d and command line, same issue.

Re: Converting to number with given format

2018-09-19 Thread Gabriel Furstenheim Milerud
I'm not completely sure that that actually works SELECT to_number('9,134', '9V3') = 9 It's true when it should be false (it should be 9.134). Also it is completely dependent on the number of digits. So for example: SELECT to_number('19,134', '9V3') Is 1, not 19.134 or even 19 On Wed,

Re: Code of Conduct

2018-09-19 Thread Steve Litt
On Wed, 19 Sep 2018 16:30:56 +0200 ERR ORR wrote: > A CoC will inevitably lead to the project taken over by leftists, Here we go again. SteveT Steve Litt September 2018 featured book: Quit Joblessness: Start Your Own Business http://www.troubleshooters.com/startbiz

Re: Code of Conduct

2018-09-19 Thread Francisco Olarte
On Wed, Sep 19, 2018 at 5:27 PM, Fred Pratt wrote: > Keep pg open and free. This smells of PC police. This community can > police itself No comment on this, just kept for context. > Sent from my mobile device. Please pardon my brevity and typos. I am not > responsible for changes made by

Re: Code of Conduct

2018-09-19 Thread Stephen Frost
Greetings, * Francisco Olarte (fola...@peoplecall.com) wrote: > I will happily pardon brevity ( although I would not call a ten line > sig plus a huge bottom quote "breve", and AFAIK it means the same in > english as in spanish ) and/or typos, but the "I am not responsible" > feels nearly

Re: Replicate Tables from SAP (DB2/HANA) to PostgreSQL

2018-09-19 Thread bricklen
On Tue, Sep 18, 2018 at 11:31 PM Thomas Güttler < guettl...@thomas-guettler.de> wrote: > Hi, > > is it possible to replicate some tables from SAP to PostgreSQL? > At the moment there are two underlaying database systems. > Some run DB2 and some run SAP-HANA. > In my case it would be nice, if it

Re: Code of Conduct plan

2018-09-19 Thread Craig Ringer
On Fri, 14 Sep 2018 at 23:11, James Keener wrote: > And if you believe strongly that a given statement you may have made is >> not objectionable...you should be willing to defend it in an adjudication >> investigation. > > > So because someone doesn't like what I say in a venue 100% separate

Re: Code of Conduct

2018-09-19 Thread Fred Pratt
Sorry, I emailed using my company account and thus the long sig. In an effort to avoid further insulting Mr Olarte, I will delete it this time.See, Self-policing works ! Fred

Re: how to know whether query data from memory after pg_prewarm

2018-09-19 Thread Fabio Pardi
@Thomas, this tool looks very interesting! @Jimmy: Back to the question,you might approach the problem from a different perspective.. If you run a query 2 consecutive times, from the secondon, you should be at 'full speed'. Therefore if the first run takes X seconds but the consecutive runs

Replicate Tables from SAP (DB2/HANA) to PostgreSQL

2018-09-19 Thread Thomas Güttler
Hi, is it possible to replicate some tables from SAP to PostgreSQL? At the moment there are two underlaying database systems. Some run DB2 and some run SAP-HANA. In my case it would be nice, if it would be possible to replicate only some rows, not all. The replication should be

Re: how to know whether query data from memory after pg_prewarm

2018-09-19 Thread Cédric Villemain
Le 19/09/2018 à 05:29, Thomas Munro a écrit : > On Wed, Sep 19, 2018 at 1:35 PM jimmy wrote: >> I use select pg_prewarm('table1','read','main') to load data of table1 into >> the memory. >> when I use select count(1) from table1 group by aa to query data. >> I find the speed of query is not