title: PostGIS extract coordinates from POLYGON
body: <p>I'm trying to extract latitude / longitude values from a polygon column in PostgreSQL that I created using the PostGIS extension, I tried get the coordinates using a query like this</p>
  
  <h1>Query</h1>
  
  <p><code>ST_AsText(coverage_area) as coverage_area
  </code>
  But the output it returns it's not in a convenient form for me to use.</p>
  
  <h1>Output</h1>
  
  <p><code>POLYGON((37.9615819622 23.7216281890869,37.9617173039801 23.7193965911865,37.9633413851658 23.717679977417,37.964559422483 23.7147617340087,37.9644240860015 23.7116718292236,37.9615819622 23.7216281890869))
  </code></p>
  
  <p>I need the output to be like this:</p>
  
  <p><code>37.9615819622 23.7216281890869,37.9617173039801 23.7193965911865,37.9633413851658 23.717679977417,37.964559422483 23.7147617340087,37.9644240860015 23.7116718292236, 37.9615819622 23.7216281890869
  </code></p>
  
  <p>I also searched the PostGIS documentation and the only thing I found was the <code>ST_AsGeoJSON</code> that also didn't help me too...
  Has anyone else encountered this problem?</p>
  
  <p>Thank you.</p>
  
  <p><strong>Note</strong>:
  I know I can create a regex rule and strip down the parentheses but I would like to avoid that and find a way to return "clean" pairs of coordinates</p>