<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wait_event &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/wait_event/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Sat, 01 Apr 2017 14:35:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>PostgreSQL 9.6: Introduced wait_event_type and wait_event new columns of pg_stat_activity</title>
		<link>https://www.dbrnd.com/2017/04/postgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 10 Apr 2017 16:16:45 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[pg_stat_activity]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL 9.6]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[wait_event]]></category>
		<category><![CDATA[wait_event_type]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5012</guid>

					<description><![CDATA[PostgreSQL 9.6 introduced new two columns of table pg_stat_activity. The columns are wait_event_type and wait_event. The column wait_event_type reports the type of event a backend is waiting for, and the wait_event which is the name of the event being waiting for. These both columns are very useful for finding a query event information. Please check [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&amp;linkname=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fpostgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity%2F&#038;title=PostgreSQL%209.6%3A%20Introduced%20wait_event_type%20and%20wait_event%20new%20columns%20of%20pg_stat_activity" data-a2a-url="https://www.dbrnd.com/2017/04/postgresql-9-6-introduced-wait_event_type-and-wait_event-new-columns-of-pg_stat_activity/" data-a2a-title="PostgreSQL 9.6: Introduced wait_event_type and wait_event new columns of pg_stat_activity"></a></p><p>PostgreSQL 9.6 introduced new two columns of table pg_stat_activity. The columns are wait_event_type and wait_event.</p>
<p>The column wait_event_type reports the type of event a backend is waiting for, and the wait_event which is the name of the event being waiting for. These both columns are very useful for finding a query event information.</p>
<p><strong>Please check small demonstration of this:</strong></p>
<p><strong>Create a sample table:</strong></p><pre class="crayon-plain-tag">CREATE TABLE tbl_students(rno int, name character varying(10));</pre><p>
<strong>Put your table in lock mode:</strong></p><pre class="crayon-plain-tag">BEGIN TRANSACTION;
LOCK tbl_students IN ACCESS EXCLUSIVE MODE;</pre><p>
<strong>Open a new query session, and try to insert a below record:</strong></p><pre class="crayon-plain-tag">INSERT INTO tbl_students VALUES (1,'Anvesh');</pre><p>
<strong>Open a new query session, and check the output of pg_stat_activity:</strong></p><pre class="crayon-plain-tag">SELECT query, wait_event_type, wait_event FROM pg_stat_activity</pre><p>
<img fetchpriority="high" decoding="async" class="alignnone wp-image-5014 size-full" title="PostgreSQL Stat Activity" src="https://www.dbrnd.com/wp-content/uploads/2017/04/PostgreSQLStatActivity.png" alt="PostgreSQL Stat Activity" width="731" height="135" srcset="https://www.dbrnd.com/wp-content/uploads/2017/04/PostgreSQLStatActivity.png 731w, https://www.dbrnd.com/wp-content/uploads/2017/04/PostgreSQLStatActivity-300x55.png 300w, https://www.dbrnd.com/wp-content/uploads/2017/04/PostgreSQLStatActivity-150x28.png 150w" sizes="(max-width: 731px) 100vw, 731px" /></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
