{"id":56483,"date":"2024-07-22T17:46:59","date_gmt":"2024-07-22T17:46:59","guid":{"rendered":"https:\/\/dbtut.com\/?p=56483"},"modified":"2024-07-22T17:49:35","modified_gmt":"2024-07-22T17:49:35","slug":"b-tree-index-in-postgresql","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/","title":{"rendered":"B-Tree Index In PostgreSQL"},"content":{"rendered":"<p>In today&#8217;s article, we will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.<\/p>\n<p>It is one of the most used index types in database systems.<\/p>\n<p>It is one of the default index types in Oracle, MSSQL and PostgreSQL.<\/p>\n<p>Different index types can be selected with the USING command in the CREATE index command in PostgreSQL.<\/p>\n<p>If the USING command is not specified, it will use the B-tree index architecture.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.farukerdem.com\/wp-content\/uploads\/2021\/03\/btreeindex.png\" \/><\/p>\n<p>B-Tree indexes are kept in pieces as seen in the picture above.<\/p>\n<p>When you want to access data in B-tree indexes, you first look at the page at the root level and if the desired data is at this root level, you go to the relevant intermediate level of this root level and from there you go to the relevant leaf level and find the data in the shortest way.<\/p>\n<p>When you want to access the record numbered &#8220;22&#8221; from the B-tree structure above, you first go to the page at the Root level between &#8220;1-200&#8221;.<\/p>\n<p>From here, the data is quickly returned to the user by going to the intermediate level page between &#8220;1-100&#8221; in the levels intermediate and then going to the intermediate level between &#8220;1-50&#8221; and the next one, going to the data set between &#8220;1-25&#8221; and taking the record number 24. .<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.farukerdem.com\/wp-content\/uploads\/2021\/03\/btreepoint.png\" \/><\/p>\n<p>You can think of a table without index as above.<\/p>\n<p>It will go to all points and try to search for the records there one by one, and therefore the return of our query will be long and costly.<\/p>\n<p>Non-indexed tables not only lengthen the query result, but also increase the CPU and disk usage rate and bottleneck the machine on which the database runs in terms of CPU and disk.<\/p>\n<p>B-tree indexes process equality and range queries on data that can be sorted in a certain order.<\/p>\n<p>In particular, the PostgreSQL query planner will prefer to use the B-tree index when a comparison is made using one of the following operators.<\/p>\n<p>&lt;<\/p>\n<p>&lt;=<\/p>\n<p>=<\/p>\n<p>&gt;=<\/p>\n<p>&gt;<\/p>\n<p>BETWEEN<\/p>\n<p>IN<\/p>\n<p>IS NULL<\/p>\n<p>NOT NULL<\/p>\n<p>column\u00a0 LIKE \u2018faruk%\u2019<\/p>\n<p>column\u00a0 |\\\u2019faruk%\u2019<\/p>\n<p>SQL statements like above also use the B-Tree index structure.<\/p>\n<p><strong>General Usage is as follows.<\/strong><\/p>\n<pre class=\"lang:default decode:true \">CREATE INDEX \u0130ndex_adi    ON Tablo_Adi USING btree (Column_\u0130smi );\r\n<\/pre>\n<p><strong>Example usage is as follows.\u00a0<\/strong><\/p>\n<pre class=\"lang:default decode:true \">CREATE INDEX ad  ON \"M\u00fcsteriler\"(\"Adi_Soyadi\" )\r\n<\/pre>\n<p>We want to fetch data containing the word &#8220;Texas&#8221; in the district column in our Address table.<\/p>\n<p>When we make a normal query, we see that it performs seq scan as follows.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.farukerdem.com\/wp-content\/uploads\/2021\/03\/seqscan.png\" \/><\/p>\n<p>Since there is a district column in the where condition in our plpgsql query, we create an index for the district column as follows.<\/p>\n<pre class=\"lang:default decode:true \">create index IX_address_district on address (district)<\/pre>\n<p>After the index is created, we see that it performs Index Only Scan as follows.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.farukerdem.com\/wp-content\/uploads\/2021\/03\/indexonlyscan.png\" \/><\/p>\n<p>When defining the index, definitions can be made in the form of asc, desc, nulls, null first and null last.<\/p>\n<p><strong>Asc:<\/strong> Ascending is defined to create the index according to the order.<\/p>\n<p><strong>Desc:<\/strong> Descending is defined to create the index according to the order.<\/p>\n<p><strong>NULL FIRST:<\/strong> It is used to place null records in the first rows in the index.<\/p>\n<p><strong>NULL LAST:<\/strong> It is used to place null records in the last rows of the index.<\/p>\n<p>Different operator classes can be defined when defining the index.<\/p>\n<p>If you are using varchar data type, you can create varchar_pattern_ops.<\/p>\n<p>Unless dealing with complex data, varchar will be sufficient.<\/p>\n<p>In order to use operator classes, the collate of the database must be set to C.<\/p>\n<p>If you want to see all operator classes, you can use the plgpsql command below.<\/p>\n<pre class=\"lang:default decode:true \">SELECT am.amname AS index_method,\r\nopc.opcname AS opclass_name\r\nFROM pg_am am, pg_opclass opc\r\nWHERE opc.opcmethod = am.oid\r\nand  am.amname='btree'\r\nORDER BY index_method, opclass_name;<\/pre>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_56483\" class=\"pvc_stats all  \" data-element-id=\"56483\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s article, we will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order. It is one of the most used index types in database systems. It is one of the default index types in Oracle, MSSQL and PostgreSQL. Different index types can be &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_56483\" class=\"pvc_stats all  \" data-element-id=\"56483\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":366,"featured_media":56489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-56483","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-postgres"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>B-Tree Index In PostgreSQL - Database Tutorials<\/title>\n<meta name=\"description\" content=\"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"B-Tree Index In PostgreSQL - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-22T17:46:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-22T17:49:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png\" \/>\n\t<meta property=\"og:image:width\" content=\"648\" \/>\n\t<meta property=\"og:image:height\" content=\"308\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Faruk Erdem\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Faruk Erdem\" \/>\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:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\"},\"author\":{\"name\":\"Faruk Erdem\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb\"},\"headline\":\"B-Tree Index In PostgreSQL\",\"datePublished\":\"2024-07-22T17:46:59+00:00\",\"dateModified\":\"2024-07-22T17:49:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\"},\"wordCount\":585,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png\",\"articleSection\":[\"PostgreSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\",\"name\":\"B-Tree Index In PostgreSQL - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png\",\"datePublished\":\"2024-07-22T17:46:59+00:00\",\"dateModified\":\"2024-07-22T17:49:35+00:00\",\"description\":\"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png\",\"width\":648,\"height\":308},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"B-Tree Index In PostgreSQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb\",\"name\":\"Faruk Erdem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g\",\"caption\":\"Faruk Erdem\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/farukerdem\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"B-Tree Index In PostgreSQL - Database Tutorials","description":"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.","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:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/","og_locale":"en_US","og_type":"article","og_title":"B-Tree Index In PostgreSQL - Database Tutorials","og_description":"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.","og_url":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/","og_site_name":"Database Tutorials","article_published_time":"2024-07-22T17:46:59+00:00","article_modified_time":"2024-07-22T17:49:35+00:00","og_image":[{"width":648,"height":308,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png","type":"image\/png"}],"author":"Faruk Erdem","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Faruk Erdem","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/"},"author":{"name":"Faruk Erdem","@id":"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb"},"headline":"B-Tree Index In PostgreSQL","datePublished":"2024-07-22T17:46:59+00:00","dateModified":"2024-07-22T17:49:35+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/"},"wordCount":585,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png","articleSection":["PostgreSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/","url":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/","name":"B-Tree Index In PostgreSQL - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png","datePublished":"2024-07-22T17:46:59+00:00","dateModified":"2024-07-22T17:49:35+00:00","description":"We will discuss the B-tree index, which is a balanced tree data structure used to store indexed values \u200b\u200bin a sorted order.","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/07\/Ekran-goruntusu-2024-07-22-204417.png","width":648,"height":308},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2024\/07\/22\/b-tree-index-in-postgresql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"B-Tree Index In PostgreSQL"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/a7dfc5684c116e536b4e93ee214ccbfb","name":"Faruk Erdem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad1e61fb5a7c9a590e765f7cad8f2dc8332090f1ceb9a5ee2aa95c69213f0c50?s=96&d=mm&r=g","caption":"Faruk Erdem"},"url":"https:\/\/dbtut.com\/index.php\/author\/farukerdem\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/56483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/366"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=56483"}],"version-history":[{"count":3,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/56483\/revisions"}],"predecessor-version":[{"id":56492,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/56483\/revisions\/56492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/56489"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=56483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=56483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=56483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}