[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-detail-572560-en":53,"doc-seo-572560-105":76},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":5,"data":54},{"doc_id":55,"user_id":56,"nickname":57,"user_avatar":58,"doc_module":9,"category_id":50,"category_name":51,"doc_title":59,"doc_description":60,"doc_content":61,"file_id":62,"file_url":63,"file_type":64,"file_size":65,"view_count":66,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":67,"language":68,"language_code":69,"site_id":70,"html_lang":69,"table_of_contents":71,"faqs":72,"seo_title":73,"seo_description":60,"update_tm":74,"read_time":75},572560,7971474921005,"Grenda","https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","PostgreSQL 9.0 - Cheatsheet - Data Types and SQL Constructs","PostgreSQL 9.0 cheatsheet compiles a practical subset of commonly used database constructs into a single reference page. It summarizes frequently referenced built-in data types and their common aliases, outlines contributed extensions and packaged modules, and lists administrative commands and common server/client operations. The sheet also provides a compact catalog of functions across casting, sequences, string processing, date/time operations, math and trig utilities, enums, XML helpers, joins, and core SQL keywords.","Official PostgreSQL 9.0 Documentation URL: [http://www.postgresql.org/docs/9.0/static/](http://www.postgresql.org/docs/9.0/static/)  \nFor more examples of new features--check out: [http://wiki.postgresql.org/index.php?title=PostgreSQL_9.0](http://wiki.postgresql.org/index.php?title=PostgreSQL_9.0)  \nWe cover only a subset of what we feel are the most useful constructs that we could squash in a single cheatsheet page  \ncommonly used  \n1 New in this release.  \n2 Enhanced in this release.  \nCOMMON BUILT-IN DATA TYPES  \nBelow are common data types with common alternative names.  \nNote: There are many more and one can define new types with create type. All table structures create an implicit type struct as well.  \ndatatype[] -e.g. varchar(50)[] (defines an array of a type)  \nbit boolean bytea  \ncharacter varying(length) -varchar(length)  \ncharacter(length) - char(length) date  \nenum  \ndouble precision - float4 float8 integer - int4  \nbigint - int8  \nnetwork address (inet, cidr, macaddr)  \nmoney  \nnumeric(length,precision)  \nbuilt-in (non-PostGIS) geometry types  \npoint, lseg,box,path,polygon, circle oid  \nserial - serial4 bigserial - serial8 text  \ntime without timezone - time time with timezone - timez  \ntimestamp without timezone - timestamp timestamp with timezone - timestampz tsquery  \ntsvector  \nuuid (aka GUID) xml  \nCONTRIBS AND DATATYPES  \nmeans distributed separately* deprecated dep included data types in ()  \nadminpack -pgAdmin admin pack auto_explain2-- explain plan logging  \ncitext (citext) - case insensitive text type cube (cube) -multi-dimensional cube typedblink - cross database/server queries  \nearthdistance - earth dist functions (depends on cube)  \nfuzzstrmatch - fuzzy string match ltree (ltree) -hierarchical tree type hstore2 (hstore) - key value store type moddatetime -moddatetime trigger passwordcheck 1 ensure strong passwords pg_bench benchmarking queries pg_buffercache - inspect buffer cache pg_trgm - trigrams for fuzzy search pgcrypto - cryptography functions pgAgent * - job agent  \npgsphere* (scircle, sellipse, spoint, sline, spolygon, spath, strans .. )  \n- spherical data types often used for astronomy pldbg -pl debugger  \npostgis * (geography, geometry, raster)  \n- raster packaged separately pre-2 .0 tablefunc -- crosstab queries  \ntemporal* (period) -- support for time periodsuuid-ossp -- generating uuids  \nvacuum_lo - delete orphaned large objects  \n--although xml2 is deprecated  \n--some functionality exists still--not present in the built-in xml--e.g. xslt_process function  \nxml2dep  \nAdmin Functions  \nCOPY .. FROM ..  \nCOPY .. TO .. current_setting pg_cancel_backend pg_column_size pg_database_size pg_relation_size pg_size_pretty pg_tablespace_size pg_total_relation_size set_config  \nvacuum analyze verbose  \nvacuum full  \nLanguages  \n*  \nc  \npackaged separately,plpgsql, sql2  \npljava  \nplperl(u)  \nplproxy*  \nplpython2  \nplpython3 plr* plruby*  \nplscheme *  \nplsh*  \npltcl  \n2  \n1  \nCommand Line  \npgbench  \npg_dump  \npg_dumpall  \npg_resetxlog  \npg_restore  \npg_standby  \npg_upgrade 2  \npsql  \nvacuumdb  \nvacuumlo  \nLarge Object  \nServer  \nlo_create lo_export, lo_import lo_unlink  \nClient  \nlo_close  \nlo_create lo_export, lo_import lo_lseek  \nlo_open  \nlo_read  \nlo_tell  \nlo_unlink  \nlo_write  \nCommon Functions  \ncast, ::  \ncoalesce  \ngenerate_series(start, stop [,step])  \ngenerate_series(start timestamp, stop timetamp [,step inteval])  \ngreatest(val1,val2,val3 . . . . )  \nleast(val1,val2,val3, . . . ) nullif  \nrandom  \nSequence (Serial) Functions  \ncurrval lastval(serialname) nextval(serialname)  \nString Functions  \n|| ascii chr  \nconvert_from(string bytea, src_encoding name) convert_to(string text, dest_encoding name) encode(data bytea, ['base64', 'hex', 'escape']) initcap  \nlength  \nlower  \nlpad  \nltrim  \nmd5  \noctet_length position(substring in string) quote_ident  \nquote_literal  \nquote_nullable regexp_matches  \nregexp_replace  \nregexp_split_to_array(  \nstring, pattern [, flags ]) regexp_split_to_table(","cbCaibsgPaswWXey","https://ap.wps.com/l/cbCaibsgPaswWXey","pdf",173597,7,6,"English","en",105,"# Built-in data types\n## Contributed data types and extensions\n# Admin and utility commands\n## Large object operations\n# Common and built-in functions\n## String, date/time, math, trig, and enums\n# SQL constructs\n## Joins and SQL keywords","[{\"question\":\"What built-in data types are commonly referenced in this PostgreSQL 9.0 cheatsheet?\",\"answer\":\"It lists common built-in types such as varchar/character varying aliases, bit/boolean, integer and bigint variants, network address types (inet/cidr/macaddr), money, numeric, uuid, xml, timestamp/date/time types, and serial variants (serial/serial4 and bigserial/serial8).\"},{\"question\":\"Which contributed modules and extension datatypes are included?\",\"answer\":\"It includes categories like adminpack/pgAdmin admin pack and explain logging, citext (case-insensitive text), cube and earthdistance dependencies, fuzzy string matching, ltree and hstore, pg_trgm and pgcrypto, pgAgent, and references to PostGIS and other separately packaged modules.\"},{\"question\":\"What SQL commands and constructs are summarized beyond data types?\",\"answer\":\"It covers common admin functions like COPY, vacuum (including analyze/verbose/full), and assorted server/client utilities (e.g., pg_dump, psql). It also includes function families (casting, coalesce, generate_series, string/date/math/trig helpers) and core SQL keywords including join types and set operations.\"}]","PostgreSQL 9.0 - Cheatsheet - Data Types and SQL Constructs | PDF",1791928082,2,{"code":4,"msg":77,"data":78},"ok",{"site_id":70,"language":69,"slug":79,"title":59,"keywords":80,"description":60,"schema_data":81,"social_meta":136,"head_meta":138,"extra_data":140,"updated_unix":141},"postgresql-90-cheatsheet-data-types-and-sql-constructs","",{"@graph":82,"@context":135},[83,98,118],{"@type":84,"itemListElement":85},"BreadcrumbList",[86,90,92,95],{"item":87,"name":88,"@type":89,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":91,"name":10,"@type":89,"position":75},"https://docshare.wps.com/template/",{"item":93,"name":51,"@type":89,"position":94},"https://docshare.wps.com/template/general/",3,{"item":96,"name":59,"@type":89,"position":97},"https://docshare.wps.com/template/postgresql-90-cheatsheet-data-types-and-sql-constructs/572560/",4,{"url":96,"name":59,"@type":99,"image":100,"author":105,"headline":59,"publisher":107,"fileFormat":110,"inLanguage":69,"description":60,"dateModified":111,"datePublished":112,"encodingFormat":110,"isAccessibleForFree":113,"interactionStatistic":114},"DigitalDocument",{"url":101,"@type":102,"width":103,"height":104},"https://docshare.wps.com/thumbnails/postgresql-90-cheatsheet-data-types-and-sql-constructs/572560.png","ImageObject",442,249,{"name":57,"@type":106},"Person",{"url":87,"name":108,"@type":109},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":115,"interactionType":116,"userInteractionCount":66},"InteractionCounter",{"@type":117},"ViewAction",{"@type":119,"mainEntity":120},"FAQPage",[121,127,131],{"name":122,"@type":123,"acceptedAnswer":124},"What built-in data types are commonly referenced in this PostgreSQL 9.0 cheatsheet?","Question",{"text":125,"@type":126},"It lists common built-in types such as varchar/character varying aliases, bit/boolean, integer and bigint variants, network address types (inet/cidr/macaddr), money, numeric, uuid, xml, timestamp/date/time types, and serial variants (serial/serial4 and bigserial/serial8).","Answer",{"name":128,"@type":123,"acceptedAnswer":129},"Which contributed modules and extension datatypes are included?",{"text":130,"@type":126},"It includes categories like adminpack/pgAdmin admin pack and explain logging, citext (case-insensitive text), cube and earthdistance dependencies, fuzzy string matching, ltree and hstore, pg_trgm and pgcrypto, pgAgent, and references to PostGIS and other separately packaged modules.",{"name":132,"@type":123,"acceptedAnswer":133},"What SQL commands and constructs are summarized beyond data types?",{"text":134,"@type":126},"It covers common admin functions like COPY, vacuum (including analyze/verbose/full), and assorted server/client utilities (e.g., pg_dump, psql). It also includes function families (casting, coalesce, generate_series, string/date/math/trig helpers) and core SQL keywords including join types and set operations.","https://schema.org",{"og:url":96,"og:type":137,"og:title":59,"og:site_name":108,"og:description":60},"article",{"robots":139,"canonical":96},"index,follow",{"doc_id":55,"site_id":70},1792083944]