forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
242 lines
32 KiB
HTML
242 lines
32 KiB
HTML
<a name="EN-US_TOPIC_0000001188323544"></a><a name="EN-US_TOPIC_0000001188323544"></a>
|
|
|
|
<h1 class="topictitle1">PG_TYPE</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188323544__en-us_topic_0059778496_p3817333665"><strong id="EN-US_TOPIC_0000001188323544__b1490195503510">PG_TYPE</strong> records the information about data types.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323544__tba0f37abe8e240eeadac2b486990f334" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_TYPE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323544__rd8a01bf461ea4e708ca81dab785f8923"><th align="left" class="cellrowborder" valign="top" width="17.31%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188323544__a5d9a9538b8984ce7902ace7416c30335">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.35%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188323544__aa7e09b1a16814d76bc9924786db22466">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="66.34%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188323544__a5d847bc8f13a41f49d9a19ccd77604e8">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323544__rb9a085d68b9f45d888305b3e6b625ca0"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a7f93be39d12247b0897f29cce0e6c89d">typname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a27324758f08e48bd96076e1627fa4ebc">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ad6e02e512c734268a2857a87b40b3626">Data type name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rca40153f10594fb68bcba4129c10f895"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a9aa65a56ff5840c39862efb2bebd9e2f">typnamespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a0ad6bbf731b741168c69cfbdc14e1195">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ac152d98878b14063bc3d2ab31d221420">OID of the namespace that contains this type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rdf8c992529874ef6adf17835ea11478c"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a4f6e6a0fcd8b4ce08411941b493db992">typowner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a3225c0e5217940e388608c2f472da905">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a116fde418562420c87048b0acd83970c">Owner of this type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r7dee7c849abe4d50a81b78f8dfd5ad96"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__aebcd46421fd24440897861ff739d5d57">typlen</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a8411d257d6614c10af001c96e884aa74">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a57d32718b78a4de9a2773591b31c14f3">Number of bytes in the internal representation of the type for a fixed-size type. But for a variable-length type, <strong id="EN-US_TOPIC_0000001188323544__b1538111157117">typlen</strong> is negative.</p>
|
|
<ul id="EN-US_TOPIC_0000001188323544__u9815b9c063984c759855c96044d8fa69"><li id="EN-US_TOPIC_0000001188323544__lbe0bba2cb5914238890c188b910cfca3"><strong id="EN-US_TOPIC_0000001188323544__b2033516311615">-1</strong> indicates a "varlena" type (one that has a length word).</li><li id="EN-US_TOPIC_0000001188323544__ld8155449f968481fb1d4d8bfecb63a68"><strong id="EN-US_TOPIC_0000001188323544__b67625361619">-2</strong> indicates a null-terminated C string.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r5c00ceb58e3a4659b0f8a4015486a6ff"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a595644ef1cfd411fa76f4d2e5dc00f8c">typbyval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a590e87a5f1ca4890ac90cec129abd0cb"><span id="EN-US_TOPIC_0000001188323544__text1115385213381">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a0a8db7ec219142d79eac3e48866ed3de">Whether the value of this type is passed by parameter or reference of this column. <strong id="EN-US_TOPIC_0000001188323544__b15514339349">TYPBYVAL</strong> is false if the type of <strong id="EN-US_TOPIC_0000001188323544__b115141639346">TYPLEN</strong> is not 1, 2, 4, or 8, because values of this type are always passed by reference of this column. <strong id="EN-US_TOPIC_0000001188323544__b10514113915414">TYPBYVAL</strong> can be false even the <strong id="EN-US_TOPIC_0000001188323544__b251463912416">TYPLEN</strong> is passed by parameter of this column.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rddb17142f1654bdca9c42aea590102a1"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a1c6a246a702c4b08a341b99348d7a520">typtype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ab18d0c6b5784448c9a6514b6c7093e5a">char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001188323544__ua8cca06eaddd4778b8e99686ed6635f5"><li id="EN-US_TOPIC_0000001188323544__l6ea036a037034ec1ac878447b397dd2f"><strong id="EN-US_TOPIC_0000001188323544__b5130151316">b</strong> indicates a basic type.</li><li id="EN-US_TOPIC_0000001188323544__l23eb0bf1b686410b863666475eb457b6"><strong id="EN-US_TOPIC_0000001188323544__b3982214322">c</strong> indicates a composite type, for example, a table's row type.</li><li id="EN-US_TOPIC_0000001188323544__lb75b1259c7a5460f827308a46bad7dbc"><strong id="EN-US_TOPIC_0000001188323544__b150417560816">e</strong> indicates an enumeration type.</li><li id="EN-US_TOPIC_0000001188323544__l15ecdf6bad0845828b21903b52b32e5c"><strong id="EN-US_TOPIC_0000001188323544__b49313663213">p</strong> indicates a pseudo type.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188323544__ace0a1f930f744078a37b2f1ae6abbf96">For details, see <strong id="EN-US_TOPIC_0000001188323544__b111776311622">typrelid</strong> and <strong id="EN-US_TOPIC_0000001188323544__b71824313216">typbasetype</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__ra0790430a018487a9e232c49dd7fcd86"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__add3ca85a83ec4334a00163abb64bfa50">typcategory</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ab723f44273a142f6823df97d4cc04a17">char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a432527eafe5b4234bdbcabab95ef143a"><strong id="EN-US_TOPIC_0000001188323544__b842352706183449">typcategory</strong> is an arbitrary classification of data types that is used by the parser to determine which implicit casts should be "preferred".</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__redb2ffa578824505a80f29eec19f8c61"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a4faeb2a9a2384f6a8fc9a6bb2887588f">typispreferred</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__aaee774c964644f189296293e4a29a2de"><span id="EN-US_TOPIC_0000001188323544__text427210534388">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a094de8c4100843d2826069538bfa5cf4">Whether data is converted. It is <strong id="EN-US_TOPIC_0000001188323544__b842352706142442">true</strong> if conversion is performed when data meets the conversion rules specified by <strong id="EN-US_TOPIC_0000001188323544__b3526103918420">TYPCATEGORY</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rfb0ff75c2918490b890cde8dc83ff444"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__aacd1d97cb8d2450ca4c891dd8435b352">typisdefined</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a9b179af76c9b4cb885d34a321912e6d1"><span id="EN-US_TOPIC_0000001188323544__text1139255418382">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a6012aa5061b64c83b0687ab003ada828">The value is <strong id="EN-US_TOPIC_0000001188323544__b12937451969">true</strong> if the type is defined. The value is <strong id="EN-US_TOPIC_0000001188323544__b1430328716">false</strong> if this is a placeholder entry for a not-yet-defined type. When it is <strong id="EN-US_TOPIC_0000001188323544__b1912113413319">false</strong>, type name, namespace, and OID are the only dependable objects.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rf0917aacc9af466fb25c4759a6ffd257"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a183a3b4ecd4b4f55b23db1fc0c18e5ec">typdelim</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__aa543a31ebb5e4344861a4d1930e2074c">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a0af1b62f7c5e4013bfe0016996025800">Character that separates two values of this type when parsing array input. Note that the delimiter is associated with the array element data type, not the array data type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rd3724b31a59b460fb9027ae57b990f4b"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a6c55c7790d3d484dabebc7bbbcd2f217">typrelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a1455ede0f3b1409481ab9aec0189a813">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a61bf2068ca6a44afbc29b2914c57e650">If this is a composite type (see <strong id="EN-US_TOPIC_0000001188323544__b842352706184129">typtype</strong>), then this column points to the <strong id="EN-US_TOPIC_0000001188323544__b842352706184534">pg_class</strong> entry that defines the corresponding table. For a free-standing composite type, the <strong id="EN-US_TOPIC_0000001188323544__b6536123912415">pg_class</strong> entry does not represent a table, but it is required for the type's <strong id="EN-US_TOPIC_0000001188323544__b4536163918411">pg_attribute</strong> entries to link to. The value is <strong id="EN-US_TOPIC_0000001188323544__b66001031299">0</strong> for non-composite types.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rd68d0921cbf5444f8707f8956df43166"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__af145594711d4451098d8acc982fbdcce">typelem</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a4a34f6c7d0dc4736a2df60c0ffb9bbf9">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ac9f138a857954e24a0ddd0a7377b3deb">If <strong id="EN-US_TOPIC_0000001188323544__b842352706184722">typelem</strong> is not 0 then it identifies another row in <strong id="EN-US_TOPIC_0000001188323544__b842352706184730">pg_type</strong>. The current type can be subscripted like an array yielding values of type <strong id="EN-US_TOPIC_0000001188323544__b2045313455115">typelem</strong>. The current type can then be subscripted like an array yielding values of type <strong id="EN-US_TOPIC_0000001188323544__b842352706184949">typelem</strong>. A "true" array type is variable length (<strong id="EN-US_TOPIC_0000001188323544__b842352706184912">typlen</strong> = -1), but some fixed-length (<strong id="EN-US_TOPIC_0000001188323544__b842352706184928">typlen</strong> > 0) types also have nonzero <strong id="EN-US_TOPIC_0000001188323544__b8423527061066">typelem</strong>, for example <strong id="EN-US_TOPIC_0000001188323544__b84235270610619">name</strong> and <strong id="EN-US_TOPIC_0000001188323544__b84235270610633">point</strong>. If a fixed-length type has a <strong id="EN-US_TOPIC_0000001188323544__b1054019395417">typelem</strong>, its internal representation must be some number of values of the <strong id="EN-US_TOPIC_0000001188323544__b95406398411">typelem</strong> data type with no other data. Variable-length array types have a header defined by the array subroutines.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r8d4da13127be4bbdb766c597aa98a707"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__ad354cc3e1cc143a887e638ba67422774">typarray</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a7171a4020fbc4cd486135e2dba51d10d">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a9e9e2bbde2e144409a3a68175722eb12">Indicates that the corresponding type record is available in <strong id="EN-US_TOPIC_0000001188323544__b19544839044">pg_type</strong> if the value is not <strong id="EN-US_TOPIC_0000001188323544__b842352706115424">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r4fdfb530ca65460a9a03534b0981e19a"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__ab87a3711466c4ce49ec959d45b8604e7">typinput</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a67f362e5bebe4effb14a7b1fe5b068e0">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a6519d34900a64ef3b4e3dd01890a406b">Input conversion function (text format)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__re3544c9d1fd14cb3b909e70924109f74"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__aea53ffb67134448ca4aeac7130c1f486">typoutput</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ad75a83ee24d248c58eec97683781933a">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a50f1eda5a2cd437d89ee4576e1179e9b">Output conversion function (text format)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rc70a764b142a4a7cb6706dc1e2477f53"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a55b4a75016294797931294ca89d15036">typreceive</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a3657d1dcfd484e3297f52318cdc696cf">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a77182166e42c424d857a9217aa68437a">Input conversion function (binary format). If no input conversion function, the value is <strong id="EN-US_TOPIC_0000001188323544__b84235270611501">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rb3ede2831694475b94b147429870dca0"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a573fb9fa214848b0a64459b3f2ae2ba1">typsend</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__afcbf20fffc20418f9472c3ff23d92939">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a4c59e5055fd143538c232f0791ab28ce">output conversion function (binary format). If no output conversion function, the value is <strong id="EN-US_TOPIC_0000001188323544__b842352706115015">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rd36d8c8415404b73ab38d92cbafe54a9"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a7eab60eebfb345ea945e051e879c6691">typmodin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__afe6e1ea25f234636b1c96193185db2bf">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ad5639bce5b0a47a1a29cb6433f3a179f">Type modifier input function. The value is <strong id="EN-US_TOPIC_0000001188323544__b842352706115017">0</strong> if the type does not support modifiers.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r71e332eba00547d799f319172f6cc7b6"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__aa3e740e0a92e4baea915a0781b75cd2e">typmodout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__abaef0850262c46d88b10cc24e96b2892">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a00d5ecad3254484d9cb98bc9b5c1c359">Type modifier output function. The value is <strong id="EN-US_TOPIC_0000001188323544__b842352706115024">0</strong> if the type does not support modifiers.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r57dd46ca2a2b4dcea4a43c7aacbdb6e1"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a2f9bcf812380407c9add37c84abf2e01">typanalyze</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__af4cce006686844cb8f918d20d6001211">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a5286539c23fc4212aa756cdc1dd13df4">Custom <strong id="EN-US_TOPIC_0000001188323544__b7565839942">ANALYZE</strong> function. The value is <strong id="EN-US_TOPIC_0000001188323544__b842352706115035">0</strong> if the standard function is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rfc77473da8c54404ba8a34f6f284033f"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__ae612801d2d9048cda18eae96485e1485">typalign</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a8a57908d6ace4a32a723dccf21e00fc2">char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a5ac8f1df64064a53a2e81012a4355231">Alignment required when storing a value of this type. It applies to storage on disk as well as most representations of the value inside PostgreSQL. When multiple values are stored consecutively, such as in the representation of a complete row on disk, padding is inserted before a data of this type so that it begins on the specified boundary. The alignment reference is the beginning of the first datum in the sequence. Possible values are:</p>
|
|
<ul id="EN-US_TOPIC_0000001188323544__u645e3881a8af4669a92fd8fdf426f492"><li id="EN-US_TOPIC_0000001188323544__lb47772ac2ff445ffb0e6d9ec37d2a24a"><strong id="EN-US_TOPIC_0000001188323544__b1611620175137">c</strong>: char alignment, that is, no alignment needed</li><li id="EN-US_TOPIC_0000001188323544__l561937f8d91f4b6a8294fc0b1861d60b"><strong id="EN-US_TOPIC_0000001188323544__b4572939545">s</strong>: short alignment (2 bytes on most machines)</li><li id="EN-US_TOPIC_0000001188323544__lbee1c446e2f2459f94dba86bed6d9a3d"><strong id="EN-US_TOPIC_0000001188323544__b1457317391740">i</strong>: <strong id="EN-US_TOPIC_0000001188323544__b842352706102621">int</strong> alignment (4 bytes on most machines).</li><li id="EN-US_TOPIC_0000001188323544__l1888d5ad3fba4ed3bf4ced4f1fdfaef8"><strong id="EN-US_TOPIC_0000001188323544__b2057417391842">d</strong>: <strong id="EN-US_TOPIC_0000001188323544__b842352706102634">double</strong> alignment (8 bytes on many machines, but by no means all)</li></ul>
|
|
<div class="notice" id="EN-US_TOPIC_0000001188323544__nee1d2394242e4db2bd851bf5c8dee589"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="EN-US_TOPIC_0000001188323544__a108b1651e6f248b796dc9a34b888f59a">For types used in system tables, the size and alignment defined in <strong id="EN-US_TOPIC_0000001188323544__b8822823160">pg_type</strong> must agree with the way that the compiler lays out the column in a structure representing a table row.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r01ce3b9ed93e49d6a970b2cd7a458c64"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a63cea2c3bb784277a75c4a4b81478350">typstorage</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a65d90e3e4eb6476ea9280d940b671cc7">char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a162ed0f5563f4a6387b5192e01d7d20f"><strong id="EN-US_TOPIC_0000001188323544__b842352706113534">typstorage</strong> tells for varlena types (those with <strong id="EN-US_TOPIC_0000001188323544__b842352706113544">typlen = -1</strong>) if the type is prepared for toasting and what the default strategy for attributes of this type should be. Possible values are:</p>
|
|
<ul id="EN-US_TOPIC_0000001188323544__ub4fa1d0480ca4902bf98289dbbe2c121"><li id="EN-US_TOPIC_0000001188323544__l51f9166a603944e7a41bdf3a0ddcbc30"><strong id="EN-US_TOPIC_0000001188323544__b842352706115747">p</strong> indicates that values are always stored plain.</li><li id="EN-US_TOPIC_0000001188323544__le7a2c9073aa54289a5600e8f9b75a21e"><strong id="EN-US_TOPIC_0000001188323544__b842352706113649">e</strong>: Value can be stored in a "secondary" relationship (if the relation has one, see <strong id="EN-US_TOPIC_0000001188323544__b84235270611374">pg_class.reltoastrelid</strong>).</li><li id="EN-US_TOPIC_0000001188323544__l72465d5ad54a4af1b1bc0763a07f735a"><strong id="EN-US_TOPIC_0000001188323544__b842352706115722">m</strong>: Values can be stored compressed inline.</li><li id="EN-US_TOPIC_0000001188323544__l06f5d01999364d0fbe5bf4df5b4f0238"><strong id="EN-US_TOPIC_0000001188323544__b842352706115724">x</strong>: Values can be stored compressed inline or stored in secondary storage.</li></ul>
|
|
<div class="notice" id="EN-US_TOPIC_0000001188323544__n46bbe711307b4b6c90a4f7a17f41e249"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="EN-US_TOPIC_0000001188323544__ad083c7717bf44de2b414c50893b975af"><strong id="EN-US_TOPIC_0000001188323544__b842352706113818">m</strong> domains can also be moved out to secondary storage, but only as a last resort (<strong id="EN-US_TOPIC_0000001188323544__b842352706113844">e</strong> and <strong id="EN-US_TOPIC_0000001188323544__b842352706113847">x</strong> domains are moved first).</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rec66e4c7ef7b487c8e79aec4a11194c6"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a1752cba40eeb417e8e46b6c5f15f2d99">typenotnull</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ae32ad9aed3d6407e8fb6eca01d7aff4a"><span id="EN-US_TOPIC_0000001188323544__text135691955183813">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__afb241c2d37254e8ab438c90ad6364fbf">Represents a <strong id="EN-US_TOPIC_0000001188323544__b1638114510164">NOTNULL</strong> constraint on a type. Currently, it is used for domains only.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rbda7c40295fb4388b851569cea30eeea"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a72403ac93c16454297b111a12005ee1f">typbasetype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ad82de5bcfbb948abab9e89af7f1ea66c">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a981c9bf8230d48aabfa1073635d64914">If this is a domain (see <strong id="EN-US_TOPIC_0000001188323544__b842352706114023">typtype</strong>), then <strong id="EN-US_TOPIC_0000001188323544__b842352706114033">typbasetype</strong> identifies the type that this one is based on. The value is <strong id="EN-US_TOPIC_0000001188323544__b842352706132221">0</strong> if this type is not a derived type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r3608bf07617c4184990b4831bbe867ab"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a2fca086506474a8a9ab66f4646b4c1ce">typtypmod</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__aec21ff57dad34d63ac8a3d41d34e51be">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a8b5357e4c3cb41a38b9475dd9ab1f740">Records the <strong id="EN-US_TOPIC_0000001188323544__b55981439841">typtypmod</strong> to be applied to domains' base types by domains (the value is <strong id="EN-US_TOPIC_0000001188323544__b75988399420">-1</strong> if the base type does not use <strong id="EN-US_TOPIC_0000001188323544__b135989391746">typmod</strong>). The value is <strong id="EN-US_TOPIC_0000001188323544__b104431211111714">-1</strong> if this type is not a domain.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__rf1645637774549f88268030d82584418"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__ab5947961dce84afba4135f2ae99a36c5">typndims</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a3e25f54a19e64838990e7a5d8fc2865b">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a2b2deea521bd4b1fb059b86f3ea8473f">Number of array dimensions for a domain that is an array (that is, <strong id="EN-US_TOPIC_0000001188323544__b146011939845">typbasetype</strong> is an array type; the domain's <strong id="EN-US_TOPIC_0000001188323544__b460143914418">typelem</strong> matches the base type's <strong id="EN-US_TOPIC_0000001188323544__b2060193920419">typelem</strong>). The value is <strong id="EN-US_TOPIC_0000001188323544__b965635641710">0</strong> for types other than domains over array types.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r062dfe68b7354dfc85923f44b3438024"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a3a148356e40443a9b3e625849f908738">typcollation</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__aeddfb4b89d464d3090a63e1b8934aaf1">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__a9d59a91b322c44ebb095bb6ff139a126">Sequence rule for specified types. Sequencing is not supported if the value is 0.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r8f196ea779b047e4b7f51cbbe86bf44d"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a8fc8c65ebf3b47b5b0b9febc0acebb82">typdefaultbin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__ad7e814a8e71540b99a263b52219f6088">pg_node_tree</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ac9c9796ffa5f4430abed6687420e31aa"><strong id="EN-US_TOPIC_0000001188323544__en-us_topic_0027042358_b41629292141944">nodeToString()</strong> representation of a default expression for the type if the value is non-null. Currently, this column is only used for domains.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r96a22108e80340d89ee6272a5632224a"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__aeac8c03636de4465b1933b8d6bb48aab">typdefault</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a733e5ed1d05e4817b10d6a45d4788483">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__ab4ab3f4919e14ae0b6d555f65a718eb2">The value is null if a type has no associated default value. If <strong id="EN-US_TOPIC_0000001188323544__en-us_topic_0027042358_b18844181141944">typdefaultbin</strong> is not null, <strong id="EN-US_TOPIC_0000001188323544__en-us_topic_0027042358_b35379901141944">typdefault</strong> must contain a human-readable version of the default expression represented by <strong id="EN-US_TOPIC_0000001188323544__en-us_topic_0027042358_b49983653141944">typdefaultbin</strong>. If <strong id="EN-US_TOPIC_0000001188323544__en-us_topic_0027042358_b48838866141944">typdefaultbin</strong> is null and <strong id="EN-US_TOPIC_0000001188323544__b154327560189">typdefault</strong> is not, then <strong id="EN-US_TOPIC_0000001188323544__b69044511915">typdefault</strong> is the external representation of the type's default value, which can be fed to the type's input converter to produce a constant.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323544__r7538016843c24a168dbda030eb193978"><td class="cellrowborder" valign="top" width="17.31%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323544__a1ed88e8385c14d70b00538e611c76a53">typacl</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323544__a4c87c98ab51d4cc8bab693d2ec1f8ad1">aclitem[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.34%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323544__acaa989d1d18146daa93faca0be733670">Access permissions</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|