[GENERAL] PostgreSQL 9.5 showing unexpected behavior when installed with different locale other than default

2017-11-08 Thread Mayank Agrawal
Hi, On Windows 7, I am trying to install PostgreSQL 9.5 ( *postgresql-9.5.2-1-windows-x64.exe*) with different locales, but it is getting installed with default locale only, which is, `*English_United States.1252*`. I tried both the methods, GUI and unattended/silent, but the results are same. I

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-27 Thread Poul Kristensen
Solution: C is able to compile with an embedded shell script. So a small C program with an argument being the user passed to the shell script it succeded succesfully. I am aware that it could be my question was not specifically relevant to Postgresql! :) It took a while to solve. :) Thanks Poul

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-23 Thread Poul Kristensen
My goal is to grap a user from the OS and and substitute the grapped user - to be the owner of the database - in the sql commands e.g using shell-script substitution syntax: create user ${user} with login; create tablespace ${user} location '/path/${user)'; create database ${us

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-23 Thread Tom Lane
"David G. Johnston" writes: > On Wed, Nov 23, 2016 at 3:46 AM, Poul Kristensen wrote: >> In the postgresql.log I get "select datname from $1". > ​That is expected when you parameterize a query - the query string includes > parameter​s instead of values. It looks like Poul is hoping to use a par

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-23 Thread David G. Johnston
On Wed, Nov 23, 2016 at 3:46 AM, Poul Kristensen wrote: > In the postgresql.log I get "select datname from $1". > ​That is expected when you parameterize a query - the query string includes parameter​s instead of values. What you are seeing is the "Prepare" component of a "prepare-execute". Wh

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-23 Thread Poul Kristensen
The below mentioned pg_database does not appear in $1. In the postgresql.log I get "select datname from $1". Do you have a suggestion of how to solve this? I get double declarations when using both char *paramValues[1] char *paramValues[1] //char *value1 = "pg_database"; //char **paramValues = &v

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-22 Thread John McKown
On Tue, Nov 22, 2016 at 8:22 AM, Poul Kristensen wrote: > I think I understand. > When I use this in my code I get > "undefined reference to `PQexecParms' > ​The correct name is PQexecParams (note the last "a"). Sorry I missed that when first looking.​ Also, just to be sure, did you include the

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-22 Thread Tom Lane
Poul Kristensen writes: > When I use this in my code I get > "undefined reference to `PQexecParms' > when compiling. IIRC, it's PQexecParams not PQexecParms regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-22 Thread Poul Kristensen
I think I understand. When I use this in my code I get "undefined reference to `PQexecParms' when compiling. references in main is const char *conninfo; /* connection string to the database */ PGconn *conn; /* connection to the database */ PGresult *res; /* result of sql query */ int nFields;

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-21 Thread John McKown
On Mon, Nov 21, 2016 at 11:22 AM, Poul Kristensen wrote: > Thank you for fast repons! > > The $1 substitution below. I assume that it refers to "joe's place". But > it is not very clear to me, how "joe's place" will appear instead of $1 > when running. Where is it possiible to read more about thi

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-21 Thread John McKown
On Mon, Nov 21, 2016 at 8:56 AM, Poul Kristensen wrote: > Hi! > > Hopefully this is this list. > > A shell variabel is defined like this > > var1= value > > used like ${var1}. > > How is the equal defened in the Postgresql C programming? > > Thanks. > > Poul > > BTW: I have not received my order

Re: [GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-21 Thread Adrian Klaver
On 11/21/2016 06:56 AM, Poul Kristensen wrote: Hi! Hopefully this is this list. A shell variabel is defined like this var1= value used like ${var1}. How is the equal defened in the Postgresql C programming? You probably need to be more specific about what aspect of using C in Postgres yo

[GENERAL] Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

2016-11-21 Thread Poul Kristensen
Hi! Hopefully this is this list. A shell variabel is defined like this var1= value used like ${var1}. How is the equal defened in the Postgresql C programming? Thanks. Poul BTW: I have not received my ordered book yet!

Re: [GENERAL] postgresql 9.5 upsert issue with nulls

2016-10-04 Thread Kenneth Marshall
On Tue, Oct 04, 2016 at 07:46:48PM +, Shaun McCready wrote: > Hello, > > I'm having an issue with using the new UPSERT feature in Postgres 9.5 > > I have a table that is used for aggregating data from another table. The > composite key is made up of 20 columns, 10 of which can be nullable. >

[GENERAL] postgresql 9.5 upsert issue with nulls

2016-10-04 Thread Shaun McCready
Hello, I'm having an issue with using the new UPSERT feature in Postgres 9.5 I have a table that is used for aggregating data from another table. The composite key is made up of 20 columns, 10 of which can be nullable. Below I have created a smaller version of the issue i'm having, specifically

Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit)

2016-06-30 Thread Adrian Klaver
ailto:adrian.kla...@aklaver.com] Sent: Thursday, June 30, 2016 7:47 PM To: Hanan Brener ; pgsql-general@postgresql.org Subject: Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit) On 06/30/2016 09:24 AM, Hanan Brener wrote: Installing on Centos 6 PostgreSQL 9.5 (64 bit) ; rub

Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit)

2016-06-30 Thread Hanan Brener
-general@postgresql.org Subject: Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit) On 06/30/2016 09:24 AM, Hanan Brener wrote: > Installing on Centos 6 PostgreSQL 9.5 (64 bit) ; ruby 1.8 How did you install the Postgres server? > > and get from > *https://pkgs.

Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit)

2016-06-30 Thread Adrian Klaver
On 06/30/2016 09:24 AM, Hanan Brener wrote: Installing on Centos 6 PostgreSQL 9.5 (64 bit) ; ruby 1.8 How did you install the Postgres server? and get from *https://pkgs.org/centos-6/epel-x86_64/postgresql-plruby-0.5.3-4.el6.x86_64.rpm.html* I would say where you install plruby from depend

Re: [GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit)

2016-06-30 Thread Tom Lane
Hanan Brener writes: > Installing on Centos 6 PostgreSQL 9.5 (64 bit) ; ruby 1.8 > and get from > https://pkgs.org/centos-6/epel-x86_64/postgresql-plruby-0.5.3-4.el6.x86_64.rpm.html > - plruby libraries(postgresql-plruby-0.5.3-4.el6.x86_64). > Additional installed postgresql95-libs > (postgresq

[GENERAL] PostgreSQL 9.5 and PL/Ruby install problem(Centos 6 64 bit)

2016-06-30 Thread Hanan Brener
Installing on Centos 6 PostgreSQL 9.5 (64 bit) ; ruby 1.8 and get from https://pkgs.org/centos-6/epel-x86_64/postgresql-plruby-0.5.3-4.el6.x86_64.rpm.html - plruby libraries(postgresql-plruby-0.5.3-4.el6.x86_64). Additional installed postgresql95-libs (postgresql95-libs-9.5.2-1PGDG.rhel6.x86_64)

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-03-06 Thread Adrian Klaver
On 03/05/2016 05:34 PM, Stefan Keller wrote: I'd like to extend (and complete) this thread by collecting programs/frameworks/applications that provide REST services over Postgres. I see following categories and open source web frameworks and/or libs: Those which * attach Postgres directly, like

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-03-05 Thread Stefan Keller
I'd like to extend (and complete) this thread by collecting programs/frameworks/applications that provide REST services over Postgres. I see following categories and open source web frameworks and/or libs: Those which * attach Postgres directly, like PostgREST (Haskell) or jsgrest (JavaScript serv

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread Peter van Eck
On 12/02/16 17:34, Adrian Klaver wrote: On 02/12/2016 08:06 AM, James Keener wrote: https://github.com/begriffs/postgrest also looks interesting! I thought the purpose of Spring/Spring Boot was to provide the REST services in front of your choice of data store. Not sure how

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread Adrian Klaver
On 02/12/2016 08:06 AM, James Keener wrote: https://github.com/begriffs/postgrest also looks interesting! I thought the purpose of Spring/Spring Boot was to provide the REST services in front of your choice of data store. Not sure how putting another server in the stack is

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread James Keener
> > > https://github.com/begriffs/postgrest also looks interesting! >> > > I thought the purpose of Spring/Spring Boot was to provide the REST > services in front of your choice of data store. Not sure how putting > another server in the stack is going to help things. I was simply responding to t

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread Adrian Klaver
On 02/12/2016 07:43 AM, James Keener wrote: https://github.com/begriffs/postgrest also looks interesting! I thought the purpose of Spring/Spring Boot was to provide the REST services in front of your choice of data store. Not sure how putting another server in the stack is going to help thing

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread James Keener
https://github.com/begriffs/postgrest also looks interesting! On Fri, Feb 12, 2016 at 10:24 AM, Adrian Klaver wrote: > On 02/12/2016 03:00 AM, Peter van Eck wrote: > >> >> >> Hi, We are looking into setting up a PostgreSQL environment for an >> application that inputs JSON through via http rest

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread Adrian Klaver
On 02/12/2016 03:00 AM, Peter van Eck wrote: Hi, We are looking into setting up a PostgreSQL environment for an application that inputs JSON through via http rest calls. Now that we havent been using Postgres for these kind of setups I was wondering what the course of action is in setting this

Re: [GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread David G. Johnston
On Fri, Feb 12, 2016 at 4:00 AM, Peter van Eck wrote: > > > Hi, We are looking into setting up a PostgreSQL environment for an > application that inputs JSON through via http rest calls. > > Now that we havent been using Postgres for these kind of setups I was > wondering what the course of actio

[GENERAL] PostgreSQL 9.5 and process REST calls enquiry

2016-02-12 Thread Peter van Eck
Hi, We are looking into setting up a PostgreSQL environment for an application that inputs JSON through via http rest calls. Now that we havent been using Postgres for these kind of setups I was wondering what the course of action is in setting this up. The development team is coding this

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-09 Thread Adrian Klaver
On 01/08/2016 08:45 PM, Deven Phillips wrote: I DID get a foreign table to work using the following: CREATE FOREIGN TABLE customer ( id BIGINT, name VARCHAR(150), parent_id BIGINT, oracle_id BIGINT, last_updated_time TIMESTAMP, created_time TIMESTAMP) SERVER mysql OPTIONS (dbname 'mydb', table_n

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-09 Thread Adrian Klaver
On 01/08/2016 08:45 PM, Deven Phillips wrote: I DID get a foreign table to work using the following: CREATE FOREIGN TABLE customer ( id BIGINT, name VARCHAR(150), parent_id BIGINT, oracle_id BIGINT, last_updated_time TIMESTAMP, created_time TIMESTAMP) SERVER mysql OPTIONS (dbname 'mydb', table_n

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
OK, that did it! I submitted 2 PRs to the EnterpriseDB/mysql_fdw GitHub project which should resolve all outstanding issues for me. https://github.com/EnterpriseDB/mysql_fdw/pull/81 https://github.com/EnterpriseDB/mysql_fdw/pull/82 Isn't it great when Open Source works like it's supposed to!!!

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
I think that I may have found the problem. It looks like the mysql_fdw uses the following query to gather information about the foreign schema: SELECT t.TABLE_NAME, c.COLUMN_NAME, CASE WHEN c.DATA_TYPE = 'enum' THEN LOWER(CONCAT(c.COLUMN_NAME, '_t')) WHEN c.DATA_TYPE = 'tinyint' THEN 'sma

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
Additional details. The MySQL server I am targeting is running version 5.1.73. Perhaps it's too old of a version to support foreign schema import? Deven On Fri, Jan 8, 2016 at 11:45 PM, Deven Phillips wrote: > I DID get a foreign table to work using the following: > > CREATE FOREIGN TABLE custo

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
I DID get a foreign table to work using the following: CREATE FOREIGN TABLE customer ( id BIGINT, name VARCHAR(150), parent_id BIGINT, oracle_id BIGINT, last_updated_time TIMESTAMP, created_time TIMESTAMP) SERVER mysql OPTIONS (dbname 'mydb', table_name 'customer'); And I was subsequently able to

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
Apparently not, though I have done so in the past on PostgreSQL 9.4. It appears to be related to the "schema" with which the foreign table is associated: mydb=# CREATE FOREIGN TABLE customer ( id BIGINT, name VARCHAR(150), parent_id BIGINT, oracle_id BIGINT, last_updated_time TIMESTAMP, created_ti

Re: [GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Adrian Klaver
On 01/08/2016 07:04 AM, Deven Phillips wrote: Hi all, I installed the newly released PostgreSQL 9.5 this morning and compiled the latest mysql_fdw extension from EnterpriseDB. I was able to create the SERVER and USER MAPPING, but I cannot seem to get IMPORT FOREIGN SCHEMA to do anything. Th

[GENERAL] PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

2016-01-08 Thread Deven Phillips
Hi all, I installed the newly released PostgreSQL 9.5 this morning and compiled the latest mysql_fdw extension from EnterpriseDB. I was able to create the SERVER and USER MAPPING, but I cannot seem to get IMPORT FOREIGN SCHEMA to do anything. The command executes without error, but none of the

Re: [GENERAL] Postgresql 9.5

2015-03-25 Thread Adrian Klaver
On 03/25/2015 07:36 AM, yba...@symcor.com wrote: Hi. I have question regarding release of postgresql 9.5 - Are we expecting it to be released in Sept 2015? 1) Since Postgresql 9.4 was released last year in Dec 2014 instead of Sept 2014, Just wanted to confirm as we would like to plan our upgrad

[GENERAL] Postgresql 9.5

2015-03-25 Thread YBarot
Hi. I have question regarding release of postgresql 9.5 - Are we expecting it to be released in Sept 2015? 1) Since Postgresql 9.4 was released last year in Dec 2014 instead of Sept 2014, Just wanted to confirm as we would like to plan our upgrade project based on the release date. 2) Can w