mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Replace appendPQExpBuffer(..., <constant>) with appendPQExpBufferStr
Arguably makes the code a bit more readable, and might give a small performance gain. David Rowley
This commit is contained in:
@ -3613,8 +3613,8 @@ _complete_from_query(int is_schema_query, const char *text, int state)
|
||||
"pg_catalog.pg_class c") == 0 &&
|
||||
strncmp(text, "pg_", 3) !=0)
|
||||
{
|
||||
appendPQExpBuffer(&query_buffer,
|
||||
" AND c.relnamespace <> (SELECT oid FROM"
|
||||
appendPQExpBufferStr(&query_buffer,
|
||||
" AND c.relnamespace <> (SELECT oid FROM"
|
||||
" pg_catalog.pg_namespace WHERE nspname = 'pg_catalog')");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user