[pgsql-jp: 35350] カラム名の文字数について

Kazunobu Nidegawa nidegawa @ bootcom.co.jp
2005年 4月 22日 (金) 16:56:51 JST


二出川と申します。


PostgreSQL 7.2.2を使用しています。
CREATE TABLE でカラム名が長いと、32文字目以降の文字が切り捨てられてしまいます。
これはPostgresの仕様なのでしょうか?
どなたかご教授下さい。よろしくお願いします。

エラー内容
NOTICE:  identifier "products_attributes_weight_prefix" will be truncated to "products_attributes_weight_pref"
NOTICE:  identifier "attributes_price_factor_onetime_offset" will be truncated to "attributes_price_factor_onetime"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 'orders_products_attributes_pkey' for table 'orders_products_attributes'
ERROR:  CREATE TABLE: attribute "attributes_price_factor_onetime" duplicated


実行したクエリ
CREATE TABLE orders_products_attributes (
  orders_products_attributes_id INT4 DEFAULT nextval('orders_products_attributes_o'),
  orders_id INT4 NOT NULL DEFAULT '0',
  orders_products_id INT4 NOT NULL DEFAULT '0',
  products_options varchar(32) NOT NULL DEFAULT '',
  products_options_values varchar(32) NOT NULL DEFAULT '',
  options_values_price decimal(15,4) NOT NULL DEFAULT '0.0000',
  price_prefix char(1) NOT NULL DEFAULT '',
  product_attribute_is_free INT2 NOT NULL DEFAULT '0',
  products_attributes_weight decimal(8,4) NOT NULL DEFAULT '0.0000',
  products_attributes_weight_prefix char(1) NOT NULL DEFAULT '',
  attributes_discounted INT2 NOT NULL DEFAULT '1',
  attributes_price_base_included INT2 NOT NULL DEFAULT '1',
  attributes_price_onetime decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_factor decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_factor_offset decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_factor_onetime decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_factor_onetime_offset decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_qty_prices text,
  attributes_qty_prices_onetime text,
  attributes_price_words decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_words_free INT4 NOT NULL DEFAULT '0',
  attributes_price_letters decimal(15,4) NOT NULL DEFAULT '0.0000',
  attributes_price_letters_free INT4 NOT NULL DEFAULT '0',
  PRIMARY KEY (orders_products_attributes_id)
);







pgsql-jp メーリングリストの案内