Novice Perceptions on Effective Elements of PostgreSQL Error Messages
Year of publication
2025
Authors
Taipalus, Toni; Grahn, Hilkka; Ritonummi, Saima; Siitonen, Valtteri; Vartiainen, Tero; Zhidkikh, Denis
Abstract
SQL compiler error messages are the primary way users receive feedback when they encounter syntax errors or other issues in their SQL queries. Effective error messages can enhance the user experience by providing clear, informative, and actionable feedback. Despite the age of SQL compilers, it still remains largely unclear what contributes to an effective SQL error message. With 2,052 answers yielded by 165 participants for qualitative analysis, this study is an attempt to understand what novices perceive as effective elements in SQL error messages. The results uniformly indicate that communicating the precise error position, articulating what is wrong in the query with clear natural language, and showing hints on how to fix the error are perceived as the most effective elements for error recovery. These insights have potential to be utilized in providing more effective error messages in SQL compilers and SQL learning environments, and for guiding generative artificial intelligence for enhanced error messages in order to minimize frustration caused by cryptic error messages, improving learning and adoption, and reducing debugging time.
Show moreOrganizations and authors
University of Vaasa
Vartiainen Tero Tapani
Publication type
Publication format
Article
Parent publication type
Journal
Article type
Original article
Audience
ScientificPeer-reviewed
Peer-ReviewedMINEDU's publication type classification code
A1 Journal article (refereed), original researchPublication channel information
Journal/Series
Volume
25
Issue
2
Article number
24
ISSN
Publication forum
Publication forum level
3
Open access
Open access in the publisher’s service
Yes
Open access of publication channel
Partially open publication channel
Self-archived
Yes
Other information
Fields of science
Computer and information sciences
Keywords
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Publication country
United States
Internationality of the publisher
International
Language
English
International co-publication
No
Co-publication with a company
No
DOI
10.1145/3732790
The publication is included in the Ministry of Education and Culture’s Publication data collection
Yes