docs: select ret null, return ret hello world (#42073)

Select returns null

return returns hello world

(so this example has always been broken)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated the database functions guide with refined code examples.
Documentation now demonstrates improved Postgres function syntax and
streamlined return mechanisms, providing developers with clearer
guidance for implementing database functions following current best
practices.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
samrose
2026-03-24 12:41:05 -04:00
committed by GitHub
parent b06be0b296
commit 089edbe6fa
@@ -416,7 +416,7 @@ language plpgsql
security definer set search_path = ''
as $$
begin
select 'hello world';
return 'hello world';
end;
$$;
```