title: Find the byte size of a row in PostgreSQL
body: <p>Assuming I have a table in PostgreSQL, how can I find the exact byte size used by the system in order to save a specific row of my table?</p>
  
  <p>For example, assume I have a table with a <code>VARCHAR(1000000)</code> field and some rows contain really big strings for this field while others really small. How can I check the byte size of a row in this case? (including the byte size even in the case <a href="http://www.postgresql.org/docs/current/static/storage-toast.html" rel="noreferrer">TOAST</a> is being used).</p>