aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-02-20 19:49:27 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-02-20 19:49:27 +0100
commit3e4d868615408370fe6c2977c32f45a47c372b00 (patch)
treead4dd9cb02d58fb938f2f8e1a8c352bcd9bfe314 /contrib/postgres_fdw
parentab84d0ff806dd791ea9da5f1ca302daf3cf42980 (diff)
downloadpostgresql-3e4d868615408370fe6c2977c32f45a47c372b00.tar.gz
postgresql-3e4d868615408370fe6c2977c32f45a47c372b00.zip
Remove various unnecessary (char *) casts
Remove a number of (char *) casts that are unnecessary. Or in some cases, rewrite the code to make the purpose of the cast clearer. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
Diffstat (limited to 'contrib/postgres_fdw')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index b92e2a0fc9f..de43727a2a0 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -5660,13 +5660,13 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
attname = PQgetvalue(res, i, 1);
typename = PQgetvalue(res, i, 2);
attnotnull = PQgetvalue(res, i, 3);
- attdefault = PQgetisnull(res, i, 4) ? (char *) NULL :
+ attdefault = PQgetisnull(res, i, 4) ? NULL :
PQgetvalue(res, i, 4);
- attgenerated = PQgetisnull(res, i, 5) ? (char *) NULL :
+ attgenerated = PQgetisnull(res, i, 5) ? NULL :
PQgetvalue(res, i, 5);
- collname = PQgetisnull(res, i, 6) ? (char *) NULL :
+ collname = PQgetisnull(res, i, 6) ? NULL :
PQgetvalue(res, i, 6);
- collnamespace = PQgetisnull(res, i, 7) ? (char *) NULL :
+ collnamespace = PQgetisnull(res, i, 7) ? NULL :
PQgetvalue(res, i, 7);
if (first_item)