{"id":11902,"date":"2018-10-25T09:36:26","date_gmt":"2018-10-25T07:36:26","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/"},"modified":"2018-10-25T09:36:26","modified_gmt":"2018-10-25T07:36:26","slug":"some-psql-features-you-are-maybe-not-aware-of","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/","title":{"rendered":"Some psql features you are maybe not aware of"},"content":{"rendered":"<p>It is the time of <a href=\"https:\/\/2018.pgconf.eu\/\" target=\"_blank\" rel=\"noopener noreferrer\">The 10th Annual PostgreSQL Conference Europe<\/a>, so this is the perfect time to blog about some tips and tricks around <a href=\"https:\/\/www.postgresql.org\/docs\/current\/static\/app-psql.html\" target=\"_blank\" rel=\"noopener noreferrer\">psql<\/a> you&#8217;ll love. psql is such a powerful tool that you really should use it every day. It saves you so much work and is packed with features that makes your life so much easier. In this post we&#8217;ll look at some features you maybe didn&#8217;t know before.<\/p>\n<p><!--more--><\/p>\n<p>Lets start with something very simple: You probably know the &#8220;\\l&#8221; shortcut to display all the databases:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\npostgres=# \\l\n                                 List of databases\n   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   \n-----------+----------+----------+------------+------------+-----------------------\n postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | \n template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n<\/pre>\n<p>Did you know you also can pass the shortcuts from your shell directly into psql?<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\npostgres@pgbox:\/home\/postgres\/ [PGDEV] psql -c '\\l' postgres\n                                 List of databases\n   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   \n-----------+----------+----------+------------+------------+-----------------------\n postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | \n template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n<\/pre>\n<p>But there is even a faster way for retrieving that information:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres@pgbox:\/home\/postgres\/ [PGDEV] psql -l\n                                 List of databases\n   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   \n-----------+----------+----------+------------+------------+-----------------------\n postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 | \n template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c\/postgres          +\n           |          |          |            |            | postgres=CTc\/postgres\n<\/pre>\n<p>Did you know you can log the complete psql session to a logfile?<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres@pgbox:\/home\/postgres\/ [PGDEV] psql -X -L \/var\/tmp\/log postgres\npsql (12devel)\nType \"help\" for help.\n\npostgres=# select 1;\n ?column? \n----------\n        1\n(1 row)\n\npostgres=# select 2;\n ?column? \n----------\n        2\n(1 row)\n\npostgres=# \\! cat \/var\/tmp\/log\n********* QUERY **********\nselect 1;\n**************************\n\n ?column? \n----------\n        1\n(1 row)\n\n********* QUERY **********\nselect 2;\n**************************\n\npostgres=# \n<\/pre>\n<p>You probably know that <a href=\"https:\/\/www.postgresql.org\/docs\/current\/static\/sql-copy.html\" target=\"_blank\" rel=\"noopener noreferrer\">copy<\/a> is the fastest way to get data into and out of PostgreSQL. Did you know you can copy from a program?<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres=# create table lottery ( draw_date date, winning_numbers text, mega_ball integer, multiplier integer );\nCREATE TABLE\npostgres=# copy lottery from \n                program 'curl https:\/\/data.ny.gov\/api\/views\/5xaw-6ayf\/rows.csv?accessType=DOWNLOAD' \n                with (header true, delimiter ',', format csv);\nCOPY 1713\npostgres=# select * from lottery limit 5;\n draw_date  | winning_numbers | mega_ball | multiplier \n------------+-----------------+-----------+------------\n 2002-05-17 | 15 18 25 33 47  |        30 |           \n 2002-05-21 | 04 28 39 41 44  |         9 |           \n 2002-05-24 | 02 04 32 44 52  |        36 |           \n 2002-05-28 | 06 21 22 29 32  |        24 |           \n 2002-05-31 | 12 28 45 46 52  |        47 |           \n(5 rows)\n<\/pre>\n<p>That basically means, whatever &#8220;program&#8221; you use: As long as the result is something psql understands you can use it.<\/p>\n<p>How often do you dynamically build SQL statements you want to execute right after? There is a quite effective solution for that in psql:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres=# select 'create table t'||i||'( a int )' from generate_series(1,10) i; \\gexec\n         ?column?          \n---------------------------\n create table t1( a int )\n create table t2( a int )\n create table t3( a int )\n create table t4( a int )\n create table t5( a int )\n create table t6( a int )\n create table t7( a int )\n create table t8( a int )\n create table t9( a int )\n create table t10( a int )\n(10 rows)\n\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\nCREATE TABLE\n<\/pre>\n<p>Did you know you can store the result of a query into a variable and use that later in other statements?<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres=# select 3 as var; \\gset\n var \n-----\n   3\n(1 row)\n\npostgres=# \\echo :var\n3\npostgres=# select * from lottery where multiplier = :var;\n draw_date  | winning_numbers | mega_ball | multiplier \n------------+-----------------+-----------+------------\n 2011-02-18 | 05 06 07 30 45  |        42 |          3\n 2011-03-01 | 01 12 19 20 47  |        25 |          3\n 2011-04-01 | 13 14 35 36 53  |        19 |          3\n 2011-04-08 | 06 40 45 50 56  |        11 |          3\n 2011-04-15 | 22 23 33 39 48  |        29 |          3\n 2011-04-22 | 03 18 46 51 53  |        17 |          3\n 2011-04-26 | 19 29 32 38 55  |        15 |          3\n 2011-05-06 | 06 18 26 37 41  |         9 |          3\n 2011-05-24 | 09 12 21 42 43  |        42 |          3\n 2011-05-31 | 28 30 31 37 55  |        13 |          3\n 2011-06-03 | 20 23 41 49 53  |        31 |          3\n 2011-06-10 | 18 21 27 37 38  |         7 |          3\n...\n<\/pre>\n<p>The last one for today is one of my favorites: As with the Linux watch command you can watch in psql: <\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\npostgres=# select now();\n              now              \n-------------------------------\n 2018-10-23 21:57:17.298083+02\n(1 row)\n\npostgres=# \\watch\nTue 23 Oct 2018 09:57:19 PM CEST (every 2s)\n\n              now              \n-------------------------------\n 2018-10-23 21:57:19.277413+02\n(1 row)\n\nTue 23 Oct 2018 09:57:21 PM CEST (every 2s)\n\n              now              \n-------------------------------\n 2018-10-23 21:57:21.364605+02\n(1 row)\n<\/pre>\n<p>Btw: You can see that the PostgreSQL Conference Europe is a technical conference when you take a look at the exhibition area during the sessions: Almost empty \ud83d\ude42<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_9.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_9.jpg\" alt=\"sdr\" width=\"1000\" height=\"750\" class=\"aligncenter size-full wp-image-28900\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is the time of The 10th Annual PostgreSQL Conference Europe, so this is the perfect time to blog about some tips and tricks around psql you&#8217;ll love. psql is such a powerful tool that you really should use it every day. It saves you so much work and is packed with features that makes [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":11904,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[1323],"type_dbi":[],"class_list":["post-11902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-administration-monitoring","tag-postgresql-11"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Some psql features you are maybe not aware of - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Some psql features you are maybe not aware of\" \/>\n<meta property=\"og:description\" content=\"It is the time of The 10th Annual PostgreSQL Conference Europe, so this is the perfect time to blog about some tips and tricks around psql you&#8217;ll love. psql is such a powerful tool that you really should use it every day. It saves you so much work and is packed with features that makes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-25T07:36:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"375\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Daniel Westermann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@westermanndanie\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Westermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\"},\"author\":{\"name\":\"Daniel Westermann\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"headline\":\"Some psql features you are maybe not aware of\",\"datePublished\":\"2018-10-25T07:36:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\"},\"wordCount\":280,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg\",\"keywords\":[\"PostgreSQL 11\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\",\"name\":\"Some psql features you are maybe not aware of - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg\",\"datePublished\":\"2018-10-25T07:36:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg\",\"width\":500,\"height\":375},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Some psql features you are maybe not aware of\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66\",\"name\":\"Daniel Westermann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g\",\"caption\":\"Daniel Westermann\"},\"description\":\"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.\",\"sameAs\":[\"https:\/\/x.com\/westermanndanie\"],\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/daniel-westermann\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Some psql features you are maybe not aware of - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/","og_locale":"en_US","og_type":"article","og_title":"Some psql features you are maybe not aware of","og_description":"It is the time of The 10th Annual PostgreSQL Conference Europe, so this is the perfect time to blog about some tips and tricks around psql you&#8217;ll love. psql is such a powerful tool that you really should use it every day. It saves you so much work and is packed with features that makes [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/","og_site_name":"dbi Blog","article_published_time":"2018-10-25T07:36:26+00:00","og_image":[{"width":500,"height":375,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg","type":"image\/jpeg"}],"author":"Daniel Westermann","twitter_card":"summary_large_image","twitter_creator":"@westermanndanie","twitter_misc":{"Written by":"Daniel Westermann","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/"},"author":{"name":"Daniel Westermann","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"headline":"Some psql features you are maybe not aware of","datePublished":"2018-10-25T07:36:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/"},"wordCount":280,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg","keywords":["PostgreSQL 11"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/","url":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/","name":"Some psql features you are maybe not aware of - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg","datePublished":"2018-10-25T07:36:26+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/IMG_20181025_100632_8.jpg","width":500,"height":375},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/some-psql-features-you-are-maybe-not-aware-of\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Some psql features you are maybe not aware of"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d08e9bd996a89bd75c0286cbabf3c66","name":"Daniel Westermann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/31350ceeecb1dd8986339a29bf040d4cd3cd087d410deccd8f55234466d6c317?s=96&d=mm&r=g","caption":"Daniel Westermann"},"description":"Daniel Westermann is Principal Consultant and Technology Leader Open Infrastructure at dbi services. He has more than 15 years of experience in management, engineering and optimization of databases and infrastructures, especially on Oracle and PostgreSQL. Since the beginning of his career, he has specialized in Oracle Technologies and is Oracle Certified Professional 12c and Oracle Certified Expert RAC\/GridInfra. Over time, Daniel has become increasingly interested in open source technologies, becoming \u201cTechnology Leader Open Infrastructure\u201d and PostgreSQL expert. \u00a0Based on community or EnterpriseDB tools, he develops and installs complex high available solutions with PostgreSQL. He is also a certified PostgreSQL Plus 9.0 Professional and a Postgres Advanced Server 9.4 Professional. He is a regular speaker at PostgreSQL conferences in Switzerland and Europe. Today Daniel is also supporting our customers on AWS services such as AWS RDS, database migrations into the cloud, EC2 and automated infrastructure management with AWS SSM (System Manager). He is a certified AWS Solutions Architect Professional. Prior to dbi services, Daniel was Management System Engineer at LC SYSTEMS-Engineering AG in Basel. Before that, he worked as Oracle Developper &amp;\u00a0Project Manager at Delta Energy Solutions AG in Basel (today Powel AG). Daniel holds a diploma in Business Informatics (DHBW, Germany). His branch-related experience mainly covers the pharma industry, the financial sector, energy, lottery and telecommunications.","sameAs":["https:\/\/x.com\/westermanndanie"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/daniel-westermann\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=11902"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11902\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/11904"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=11902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=11902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=11902"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=11902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}