to set limit =1 in postgresql query code example
Example: postgresql limit
SELECT select_list
FROM table_expression
LIMIT number OFFSET number
SELECT select_list
FROM table_expression
LIMIT number OFFSET number