I was wondering when it is better to choose sequence, and when it is better
to use serial.

What I want is returning last value after insert using

```
SELECT LASTVAL();

```

I read this question
[PostgreSQL Autoincrement](https://stackoverflow.com/questions/787722/postgresql-autoincrement)

I never use serial before.