Skip to content

Convert all errors to ereport #167

@theory

Description

@theory

Replace all instances of elog() with ereport() with an appropriate error code and always prefixed with pg_clickhouse: . For generic FDW errors, for example:

ereport(ERROR,
		errcode(ERRCODE_FDW_ERROR),
		errmsg("pg_clickhouse: failed to push down %s", text_to_cstring(name))
	);

Consult include/server/utils/errcodes.h for the relevant error codes.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersqualityQuality controls, testing, test coverage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions