0

I am new to postgres, and I am using Visual Studio Code IDE (version 1.62) to write my scripts.

While doing so, I am observing this strange behaviour where VS Code doesn't highlight the data type smallserial (2 bytes).

Here is what I see:

enter image description here

But I know that the script is correct because this query runs successfully. How can I get the proper highlighting here?

1 Answer 1

1

That's probably because smallserial (like serial or bigserial) are not actual data types. See:

In Postgres 10 or later, consider an IDENTITY column instead. See:

If serial and bigserial are highlighted, but smallserial is not, then that's inconsistent and should be fixed.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, but then how come VS Code serial and bigserial, but serial or smallserial. All of them are pseudo data types, so why only one is not recognized by VS Code?
Thst's a bug then. A missing keyword in their list.
Okay, thanks! I will create an issue on their GitHub repo then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.