I am experiencing a weird issue in my bibliography.
I have a bibtex entry like:
@online{psqldocs,
author = {PostgreSQL Development Team},
title = "{PostgreSQL Documentation}",
url = {https://www.postgresql.org/docs/}
}
That results in:
[42] PostgreSQL Development Team. PostgreSQL Documentation, . Retrieved
from: https://www.postgresql.org/docs/.
As you can see, there is an extra comma after the title, as bibtex is waiting for the year field. In fact, if I add a year entry for psqldocs, the formatting is ok, having title, year.
How can I fix this? This is a MWE:
\documentclass[13pt, a4paper, titlepage, oneside]{book}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[left=3.00cm, right=3.00cm, top=3.00cm, bottom=3.00cm]{geometry}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.2}
\usepackage[fontsize=13pt]{scrextend}
\usepackage{xcolor}
\definecolor{wine}{rgb}{0.5,0,0}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor = .,
citecolor = .,
filecolor = .,
menucolor = .,
runcolor = .,
urlcolor = wine
}
\renewcommand{\UrlFont}{\small}
\usepackage{breakurl}
\usepackage[square,comma,numbers]{natbib}
\bibliographystyle{unsrtnat}
\begin{document}
\cite{psqldocs}
\bibliography{ref}
\end{document}
With ref.bib containing the above bibliography entry.
Please note that, for previous similar entries, I do not see this behavior. For example:
@online{ piezoelectr,
author = "ScienceDirect",
title = "{Piezoelectricity}",
url = "https://www.sciencedirect.com/topics/materials- science/piezoelectricity"
}
results in:
[1] ScienceDirect. Piezoelectricity. Retrieved from:
https://www.sciencedirect.com/topics/materials-science/piezoelectricity.
as expected.
Note that using "s instead of braces had no effect.
EDIT:
This is the version of the TeX distro I am using (simply obtained inputting pdflatex into my terminal):
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
In addition, I have fixed my MWE. I confirm that I cannot reproduce the described issue. Any clue?

titlefield are debatable (at least in their current WYSIWYG form, I would usetitle = {{PostgreSQL} Documentation},), you need double braces for theauthor:author = {{PostgreSQL Development Team}},. See https://tex.stackexchange.com/q/10808/35864. (Note that I'm not commenting on the issue whether or not your outer field delimiters should be"..."or{...}. I prefer braces, but"..."should work just as well in this example, and with care also in general: https://tex.stackexchange.com/q/109064/35864) – moewe Feb 26 '19 at 11:16