<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum PostgreSQL - subtype]]></title>
		<link>https://forum.postgresql.org.pl/viewtopic.php?id=318</link>
		<description><![CDATA[Najświeższe odpowiedzi w subtype.]]></description>
		<lastBuildDate>Tue, 20 Oct 2009 10:02:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1453#p1453</link>
			<description><![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 ?]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Tue, 20 Oct 2009 10:02:47 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1453#p1453</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1452#p1452</link>
			<description><![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]]]></description>
			<author><![CDATA[dummy@example.com (rski)]]></author>
			<pubDate>Tue, 20 Oct 2009 09:31:14 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1452#p1452</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1451#p1451</link>
			<description><![CDATA[Nie mozna jednak założyć takiego domain

CREATE DOMAIN numer_FK        AS kontrahent.numer_fk%TYPE;

kontrahent - tabela
numer_fk - pole]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Tue, 20 Oct 2009 09:18:05 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1451#p1451</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1443#p1443</link>
			<description><![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"]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Mon, 19 Oct 2009 12:43:13 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1443#p1443</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1442#p1442</link>
			<description><![CDATA[Znaczy potrzebujesz typu, ktoremu nadasz nazwę?
[code]
CREATE DOMAIN ...
[/code]]]></description>
			<author><![CDATA[dummy@example.com (rski)]]></author>
			<pubDate>Mon, 19 Oct 2009 12:28:46 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1442#p1442</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1441#p1441</link>
			<description><![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]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Mon, 19 Oct 2009 11:44:42 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1441#p1441</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1440#p1440</link>
			<description><![CDATA[W postgresie nie ma pakietów.]]></description>
			<author><![CDATA[dummy@example.com (rski)]]></author>
			<pubDate>Mon, 19 Oct 2009 11:06:44 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1440#p1440</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1439#p1439</link>
			<description><![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]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Mon, 19 Oct 2009 10:48:57 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1439#p1439</guid>
		</item>
		<item>
			<title><![CDATA[Odp: subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1438#p1438</link>
			<description><![CDATA[Może tak
[code]
CREATE TYPE .. like_type ...
[/code]
Albo powiedz co chcesz uzyskac.]]></description>
			<author><![CDATA[dummy@example.com (rski)]]></author>
			<pubDate>Mon, 19 Oct 2009 10:17:36 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1438#p1438</guid>
		</item>
		<item>
			<title><![CDATA[subtype]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1437#p1437</link>
			<description><![CDATA[Czy istnieje w pl/pgsql postgresa odpowiednik polecenia subtype z pl/sql-a oracla?]]></description>
			<author><![CDATA[dummy@example.com (mborkk)]]></author>
			<pubDate>Mon, 19 Oct 2009 09:51:52 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1437#p1437</guid>
		</item>
	</channel>
</rss>
