pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: csjy_tsb@163.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14667: Question on money type as the key of partitioned table
Date: Wed, 24 May 2017 02:52:55 +0000
Message-ID: <20170524025255.29945.43057@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14667
Logged by:          tian bing
Email address:      csjy_tsb@163.com
PostgreSQL version: 10beta1
Operating system:   centos6.4
Description:        

Hi,
When I use the money type as the key to create the partition table as
follows:

postgres=# create table test(m money) partition by list(m);
CREATE TABLE
postgres=# create table test_1 partition of test for values in (10);
CREATE TABLE

Partition bounds without apostrophe can be createed, but it store the null
value,not '10' value.

In fact, Correct grammar for creating partition is with apostrophe like
this:
postgres=# create table test_1 partition of test for values in ('10');

But the first creating partition without apostrophe should report an error
like "ERROR:  operator does not exist: money = integer"  as adding a check
constraint.

Looking forward to your reply.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20170524025255.29945.43057@wrigleys.postgresql.org>
Permalink:  ../20170524025255.29945.43057@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170524025255.29945.43057@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: csjy_tsb@163.com
  Subject: Re: BUG #14667: Question on money type as the key of partitioned table
  In-Reply-To: <20170524025255.29945.43057@wrigleys.postgresql.org>
  References: <20170524025255.29945.43057@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox