{"id":2515,"date":"2025-03-20T13:51:42","date_gmt":"2025-03-20T06:51:42","guid":{"rendered":"https:\/\/www.pgtutorial.com\/?page_id=2515"},"modified":"2025-03-21T20:55:07","modified_gmt":"2025-03-21T13:55:07","slug":"postgresql-transaction_timestamp","status":"publish","type":"page","link":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/","title":{"rendered":"PostgreSQL TRANSACTION_TIMESTAMP Function"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: In this tutorial, you&#8217;ll learn the PostgreSQL <code>TRANSACTION_TIMESTAMP<\/code> function and how to use it to get the current transaction&#8217;s start time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction-to-postgresql-transaction_timestamp-function\" id='introduction-to-postgresql-transaction_timestamp-function'>Introduction to PostgreSQL TRANSACTION_TIMESTAMP Function <a href=\"#introduction-to-postgresql-transaction_timestamp-function\" class=\"anchor\" id=\"introduction-to-postgresql-transaction_timestamp-function\" title=\"Anchor for Introduction to PostgreSQL TRANSACTION_TIMESTAMP Function\">#<\/a><\/h2>\n\n\n\n<p>The&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;function lets you obtain the current transaction&#8217;s start time.<\/p>\n\n\n\n<p>The&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;has the following straightforward syntax:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">TRANSACTION_TIMESTAMP()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;function accepts no argument. It returns a value of the&nbsp;<code><a href=\"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/postgresql-timestamp-with-time-zone\/\">TIMESTAMP WITH TIME ZONE<\/a><\/code>&nbsp;type.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"basic-postgresql-transaction_timestamp-function-example\" id='basic-postgresql-transaction_timestamp-function-example'>Basic PostgreSQL TRANSACTION_TIMESTAMP function example <a href=\"#basic-postgresql-transaction_timestamp-function-example\" class=\"anchor\" id=\"basic-postgresql-transaction_timestamp-function-example\" title=\"Anchor for Basic PostgreSQL TRANSACTION_TIMESTAMP function example\">#<\/a><\/h2>\n\n\n\n<p>The following example uses the&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;function to obtain the start time of the current transaction:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span> TRANSACTION_TIMESTAMP();<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"> transaction_timestamp\n<span class=\"hljs-comment\">------------------------<\/span>\n <span class=\"hljs-number\">2025<\/span><span class=\"hljs-number\">-03<\/span><span class=\"hljs-number\">-19<\/span> <span class=\"hljs-number\">21<\/span>:<span class=\"hljs-number\">23<\/span>:<span class=\"hljs-number\">37.665989<\/span><span class=\"hljs-number\">-07<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"calling-the-transaction_timestamp-function-within-a-statement-multiple-times\" id='calling-the-transaction_timestamp-function-within-a-statement-multiple-times'>Calling the TRANSACTION_TIMESTAMP function within a statement multiple times <a href=\"#calling-the-transaction_timestamp-function-within-a-statement-multiple-times\" class=\"anchor\" id=\"calling-the-transaction_timestamp-function-within-a-statement-multiple-times\" title=\"Anchor for Calling the TRANSACTION_TIMESTAMP function within a statement multiple times\">#<\/a><\/h2>\n\n\n\n<p>The following example illustrates how to call the&nbsp;<code>TRANSACTION_TIMESTAMP()<\/code>&nbsp;function multiple times within a single statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n    TRANSACTION_TIMESTAMP() <span class=\"hljs-keyword\">AS<\/span> first_call,\n    pg_sleep(<span class=\"hljs-number\">2<\/span>),\n    TRANSACTION_TIMESTAMP() <span class=\"hljs-keyword\">AS<\/span> second_call;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\">          first_call           | pg_sleep |          second_call\n<span class=\"hljs-comment\">-------------------------------+----------+-------------------------------<\/span>\n <span class=\"hljs-number\">2025<\/span><span class=\"hljs-number\">-03<\/span><span class=\"hljs-number\">-19<\/span> <span class=\"hljs-number\">23<\/span>:<span class=\"hljs-number\">50<\/span>:<span class=\"hljs-number\">20.314038<\/span><span class=\"hljs-number\">-07<\/span> |          | <span class=\"hljs-number\">2025<\/span><span class=\"hljs-number\">-03<\/span><span class=\"hljs-number\">-19<\/span> <span class=\"hljs-number\">23<\/span>:<span class=\"hljs-number\">50<\/span>:<span class=\"hljs-number\">20.314038<\/span><span class=\"hljs-number\">-07<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Even though we have a delay (2s) between the first and second calls of the&nbsp;<code>TRANSACTION_TIMESTAMP()<\/code>&nbsp;function, both return the same timestamp.<\/p>\n\n\n\n<p>It means that the&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;returns the time when the statement executes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"finding-transactions-started-5-minutes-ago\" id='finding-transactions-started-5-minutes-ago'>Finding transactions started 5 minutes ago <a href=\"#finding-transactions-started-5-minutes-ago\" class=\"anchor\" id=\"finding-transactions-started-5-minutes-ago\" title=\"Anchor for Finding transactions started 5 minutes ago\">#<\/a><\/h2>\n\n\n\n<p>The following query uses the&nbsp;<code>TRANSACTION_TIMESTAMP()<\/code>&nbsp;function in the&nbsp;<code>WHERE<\/code>&nbsp;clause to find the transaction started 5 minutes ago:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PostgreSQL SQL dialect and PL\/pgSQL\" data-shcb-language-slug=\"pgsql\"><span><code class=\"hljs language-pgsql\"><span class=\"hljs-keyword\">SELECT<\/span>\n    *\n<span class=\"hljs-keyword\">FROM<\/span>\n    pg_stat_activity\n<span class=\"hljs-keyword\">WHERE<\/span>\n    state = <span class=\"hljs-string\">'active'<\/span>\n    <span class=\"hljs-keyword\">AND<\/span> TRANSACTION_TIMESTAMP() &lt; <span class=\"hljs-built_in\">CURRENT_TIMESTAMP<\/span> - <span class=\"hljs-type\">INTERVAL<\/span> <span class=\"hljs-string\">'5 minutes'<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PostgreSQL SQL dialect and PL\/pgSQL<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">pgsql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This query allows you to identify the old transactions that may cause locks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"summary\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The&nbsp;<code>TRANSACTION_TIMESTAMP<\/code>&nbsp;function allows you to get the current transaction&#8217;s start time.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='quiz'>Quiz <a href=\"#quiz\" class=\"anchor\" id=\"quiz\" title=\"Anchor for Quiz\">#<\/a><\/h2>\n\n\n\n<iframe loading=\"lazy\"\n  name=\"quiz\"\n  src=\"\/quiz\/?quiz=transaction_timestamp\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\n\n\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"2515\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/\"\n\t\t\t\tdata-post-title=\"PostgreSQL TRANSACTION_TIMESTAMP Function\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"2515\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/\"\n\t\t\t\tdata-post-title=\"PostgreSQL TRANSACTION_TIMESTAMP Function\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summary: In this tutorial, you&#8217;ll learn the PostgreSQL TRANSACTION_TIMESTAMP function and how to use it to get the current transaction&#8217;s start time. Introduction to PostgreSQL TRANSACTION_TIMESTAMP Function # The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function lets you obtain the current transaction&#8217;s start time. The&nbsp;TRANSACTION_TIMESTAMP&nbsp;has the following straightforward syntax: The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function accepts no argument. It returns a value of the&nbsp;TIMESTAMP WITH TIME ZONE&nbsp;type. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2440,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2515","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PostgreSQL TRANSACTION_TIMESTAMP Function<\/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.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL TRANSACTION_TIMESTAMP Function\" \/>\n<meta property=\"og:description\" content=\"Summary: In this tutorial, you&#8217;ll learn the PostgreSQL TRANSACTION_TIMESTAMP function and how to use it to get the current transaction&#8217;s start time. Introduction to PostgreSQL TRANSACTION_TIMESTAMP Function # The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function lets you obtain the current transaction&#8217;s start time. The&nbsp;TRANSACTION_TIMESTAMP&nbsp;has the following straightforward syntax: The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function accepts no argument. It returns a value of the&nbsp;TIMESTAMP WITH TIME ZONE&nbsp;type. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/\" \/>\n<meta property=\"og:site_name\" content=\"PostgreSQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-21T13:55:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/postgresql-transaction_timestamp\\\/\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/postgresql-transaction_timestamp\\\/\",\"name\":\"PostgreSQL TRANSACTION_TIMESTAMP Function\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\"},\"datePublished\":\"2025-03-20T06:51:42+00:00\",\"dateModified\":\"2025-03-21T13:55:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/postgresql-transaction_timestamp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/postgresql-transaction_timestamp\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/postgresql-transaction_timestamp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pgtutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL Date Functions\",\"item\":\"https:\\\/\\\/www.pgtutorial.com\\\/postgresql-date-functions\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PostgreSQL TRANSACTION_TIMESTAMP Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/\",\"name\":\"PostgreSQL Tutorial\",\"description\":\"Learn PostgreSQL from Scratch\",\"alternateName\":\"PostgreSQL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pgtutorial.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PostgreSQL TRANSACTION_TIMESTAMP Function","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.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/","og_locale":"en_US","og_type":"article","og_title":"PostgreSQL TRANSACTION_TIMESTAMP Function","og_description":"Summary: In this tutorial, you&#8217;ll learn the PostgreSQL TRANSACTION_TIMESTAMP function and how to use it to get the current transaction&#8217;s start time. Introduction to PostgreSQL TRANSACTION_TIMESTAMP Function # The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function lets you obtain the current transaction&#8217;s start time. The&nbsp;TRANSACTION_TIMESTAMP&nbsp;has the following straightforward syntax: The&nbsp;TRANSACTION_TIMESTAMP&nbsp;function accepts no argument. It returns a value of the&nbsp;TIMESTAMP WITH TIME ZONE&nbsp;type. [&hellip;]","og_url":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/","og_site_name":"PostgreSQL Tutorial","article_modified_time":"2025-03-21T13:55:07+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/","url":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/","name":"PostgreSQL TRANSACTION_TIMESTAMP Function","isPartOf":{"@id":"https:\/\/www.pgtutorial.com\/#website"},"datePublished":"2025-03-20T06:51:42+00:00","dateModified":"2025-03-21T13:55:07+00:00","breadcrumb":{"@id":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/postgresql-transaction_timestamp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pgtutorial.com\/"},{"@type":"ListItem","position":2,"name":"PostgreSQL Date Functions","item":"https:\/\/www.pgtutorial.com\/postgresql-date-functions\/"},{"@type":"ListItem","position":3,"name":"PostgreSQL TRANSACTION_TIMESTAMP Function"}]},{"@type":"WebSite","@id":"https:\/\/www.pgtutorial.com\/#website","url":"https:\/\/www.pgtutorial.com\/","name":"PostgreSQL Tutorial","description":"Learn PostgreSQL from Scratch","alternateName":"PostgreSQL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pgtutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/2515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/comments?post=2515"}],"version-history":[{"count":4,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/2515\/revisions"}],"predecessor-version":[{"id":2560,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/2515\/revisions\/2560"}],"up":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/2440"}],"wp:attachment":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/media?parent=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}