<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - subtype]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=318&amp;type=atom"/>
	<updated>2009-10-20T10:02:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=318</id>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1453#p1453"/>
			<content type="html"><![CDATA[Dzięki za wyjaśnienie %TYPE

Chodzi mi i deklaracje typów  a nie zmiennych
czy konstrukcja którą podałeś

	t_id        IS NUMBER(10,0);
	t_number    IS NUMBER(10,0);
	t_boolean   IS NUMBER(1,0);
	t_code      IS VARCHAR2(30);
	t_file_path IS VARCHAR2(256);
                t_check_sum IS RAW(512);

jest poprawna w postgresie ?]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-20T10:02:47Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1453#p1453</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1452#p1452"/>
			<content type="html"><![CDATA[No nie, DOMAIN to SQL a %TYPE plpgsql.

Nie za bardzo rozumiem czym zapis
[quote]
  SUBTYPE t_id        IS NUMBER(10,0);
   SUBTYPE t_number    IS NUMBER(10,0);
   SUBTYPE t_boolean   IS NUMBER(1,0);
   SUBTYPE t_code      IS VARCHAR2(30);
   SUBTYPE t_file_path IS VARCHAR2(256);
   SUBTYPE t_check_sum IS RAW(512);
[/quote]
miałby się różnić  od zapisu
[code]
   t_id        IS NUMBER(10,0);
   t_number    IS NUMBER(10,0);
   t_boolean   IS NUMBER(1,0);
   t_code      IS VARCHAR2(30);
   t_file_path IS VARCHAR2(256);
   t_check_sum IS RAW(512);
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-10-20T09:31:14Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1452#p1452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1451#p1451"/>
			<content type="html"><![CDATA[Nie mozna jednak założyć takiego domain

CREATE DOMAIN numer_FK        AS kontrahent.numer_fk%TYPE;

kontrahent - tabela
numer_fk - pole]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-20T09:18:05Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1451#p1451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1443#p1443"/>
			<content type="html"><![CDATA[[quote=rski]Znaczy potrzebujesz typu, ktoremu nadasz nazwę?
[code]
CREATE DOMAIN ...
[/code][/quote]
Dziekuję!
Ta odpowiedź naprowadziła mnie na informację

[url]http://forums.enterprisedb.com/posts/list/1955.page[/url]

 "Currently there is no direct support of SUBTYPE in Package declaration. So, manual migration would be require for such package to PPAS"]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-19T12:43:13Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1443#p1443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1442#p1442"/>
			<content type="html"><![CDATA[Znaczy potrzebujesz typu, ktoremu nadasz nazwę?
[code]
CREATE DOMAIN ...
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-10-19T12:28:46Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1442#p1442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1441#p1441"/>
			<content type="html"><![CDATA[[quote=rski]W postgresie nie ma pakietów.[/quote]

ta dystrybucja ma pakiety
[url]http://www.enterprisedb.com/[/url]

ale pomijajac sprawę pakietów
potrzbuję informacji jak 
np zdefioniować typ SUBTYPE t_code      IS VARCHAR2(30);
w postgresie]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-19T11:44:42Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1441#p1441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1440#p1440"/>
			<content type="html"><![CDATA[W postgresie nie ma pakietów.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-10-19T11:06:44Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1440#p1440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1439#p1439"/>
			<content type="html"><![CDATA[[quote=rski]Może tak
[code]
CREATE TYPE .. like_type ...
[/code]
Albo powiedz co chcesz uzyskac.[/quote]
 np 
tworzymy pakiet z definicjami typów PG_TYPE
  SUBTYPE t_id        IS NUMBER(10,0);
   SUBTYPE t_number    IS NUMBER(10,0);
   SUBTYPE t_boolean   IS NUMBER(1,0);
   SUBTYPE t_code      IS VARCHAR2(30);
   SUBTYPE t_file_path IS VARCHAR2(256);
   SUBTYPE t_check_sum IS RAW(512);
...
developrzy w innych pakietach używają tylko typów zdefioniowanych w pakiecie PG_TYPE]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-19T10:48:57Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1439#p1439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1438#p1438"/>
			<content type="html"><![CDATA[Może tak
[code]
CREATE TYPE .. like_type ...
[/code]
Albo powiedz co chcesz uzyskac.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-10-19T10:17:36Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1438#p1438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[subtype]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1437#p1437"/>
			<content type="html"><![CDATA[Czy istnieje w pl/pgsql postgresa odpowiednik polecenia subtype z pl/sql-a oracla?]]></content>
			<author>
				<name><![CDATA[mborkk]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=997</uri>
			</author>
			<updated>2009-10-19T09:51:52Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1437#p1437</id>
		</entry>
</feed>
