Principal Software Engineer - Postgres
Software engineeringPosted over 2 months agofrom ClickHouse's own hiring page
- Work type
- RemoteIn India, the US, the UK, Canada and Australia
- Experience
- 10+ years
- Pay
- $200k–280k a year
- Posted
- Over 2 months agoOpen 6 months
Skills it mentions
Add your skills to see which ones you have.
About the job
About the Role
ClickHouse is expanding its capabilities in the database systems domain, building next-generation infrastructure that redefines performance, scalability, and developer experience. We’re looking for a Principal Engineer with deep expertise in systems programming and database internals — particularly Postgres — to help us push boundaries in how databases are built and operated at scale.
This is a strategic and high-impact role for an engineer who can work independently across complex technical areas: from storage and performance optimization to distributed coordination and extension development. You’ll shape critical components of our data platform, mentor other engineers, and drive architectural direction for systems that serve massive workloads.
What You’ll Do
Lead design and implementation of advanced systems features across areas like storage, replication, query execution, and performance optimization.
Contribute to and extend Postgres internals — improving reliability, scalability, and efficiency.
Prototype and build extensions that expand Postgres’s core capabilities and integrate with cloud-native infrastructure.
Collaborate with product, infrastructure, and cloud platform teams to deliver robust, developer-friendly experiences.
Profile and optimize database performance using low-level instrumentation and benchmarking.
Provide technical leadership, set standards for engineering excellence, and mentor senior engineers.
Operate with significant autonomy and ownership — driving projects from concept to production.
About You
10+ years of experience building systems software in C/C++ or Rust (Go experience a plus).
Deep knowledge of PostgreSQL or other database engine internals, including storage, execution, or replication subsystems.
Strong understanding of concurrency, operating systems, and performance engineering.
Proven ability to ship large-scale systems or core infrastructure features end-to-end.
Experience contributing to open-source databases or similar complex systems is highly desirable.
Pragmatic problem solver with a bias for simplicity and measurable impact.
Thrives in a high-autonomy, high-velocity environment.
Why Join Us
Work on foundational database technologies at the intersection of performance, reliability, and usability.
Shape the future of Postgres-based systems and cloud data infrastructure.
Operate with autonomy in a small, high-talent team that values depth, craftsmanship, and impact.
Contribute to an ambitious vision: making data systems faster, simpler, and more powerful for developers everywhere.
#LI-remote
Perks
Flexible work environment - ClickHouse is a globally distributed company and remote-friendly. We currently operate in over 25 countries.
Healthcare - Employer contributions towards your healthcare.
Equity in the company - Every new eligible team member who joins our company receives equity.
Time off - Flexible time off in the US, generous entitlement in other countries.
A USD$500 Home office setup if you’re a remote employee.
Global Gatherings – We believe in the power of in-person connection and offer opportunities to engage with colleagues at company-wide offsites.
Culture - We All Shape It
As part of a rapidly scaling start-up, you will be instrumental in shaping our culture.
Are you interested in finding out more about our culture? Learn more about our values here. Check out our blog posts or follow us on LinkedIn to find out more about what’s happening at ClickHouse.
Equal Opportunity & Privacy
ClickHouse provides equal employment opportunities to all employees and applicants and prohibits discrimination and harassment of any type based on factors such as race, color, religion, age, sex, national origin, disability status, genetics, protected veteran status, sexual orientation, gender identity or expression, or any other characteristic protected by federal, state or local laws.
Please see here for our Privacy Statement.
Interested?Principal Software Engineer - Postgres at ClickHouse
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on PostgreSQL, C, C++ and 2 more
Interview questions for this job
For the skills the ad mentions: PostgreSQL, C, C++, Rust and Go.
What is the best way to store an email address in PostgreSQL?PostgreSQL
Custom
DOMAINsI don't think using
citext(case-insensitive) is enough[1]. Using PostgreSQL we can create a custom domain which is essentially some defined constraints over a type. We can create a domain for instance over thecitexttype, or overtext.Using HTML5
type=emailspecCurrently the most correct answer to the question what is an e-mail address is specified in RFC5322. That spec is insanely complex[2], so much so that everything breaks it. HTML5 contains a different spec for email,
This requirement is a willful violation of RFC 5322, which defines a syntax for e-mail addresses that is simultaneously too strict (before the "@" character), too vague (after the "@" character), and too lax (allowing comments, whitespace characters, and quoted strings in manners unfamiliar to most users) to be of practical use here. [...] The following JavaScript- and Perl-compatible regular expression is an implementation of the above definition.
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/This is likely what you want, and if it's good enough for HTML5, it's probably good enough for you. We can make use of that directly in PostgreSQL. I also use
citexthere (which technically means you can simply the regex a bit visually by removing either the upper-case or lower-case).CREATE EXTENSION citext; CREATE DOMAIN email AS citext CHECK ( value ~ '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$' );Now you can do...
SELECT 'asdf@foobar.com'::email;But not
SELECT 'asdf@foob,,ar.com'::email; SELECT 'asd@f@foobar.com'::email;Because both of those return
ERROR: value for domain email violates check constraint "email_check"Because this is based on citext too
SELECT 'asdf@foobar.com'::email = 'ASdf@fooBAR.com';returns true by default.
Using
plperlu/Email::ValidAs an important note, there is a more correct method of doing this that is far more complex using
plperlu. If you need this level of correctness you do not wantcitext.Email::Validcan even check if the domain has an MX record (example in docs of Email::Valid)! First, add plperlu (requires superuser).CREATE EXTENSION plperlu;Then create the function, notice we mark at as an
IMMUTABLE:CREATE FUNCTION valid_email(text) RETURNS boolean LANGUAGE plperlu IMMUTABLE LEAKPROOF STRICT AS $$ use Email::Valid; my $email = shift; Email::Valid->address($email) or die "Invalid email address: $email\n"; return 'true'; $$;Then create the domain,
CREATE DOMAIN validemail AS text NOT NULL CONSTRAINT validemail_check CHECK (valid_email(VALUE));Footnotes
Read the rest at the sourceFrom Database Administrators Stack Exchange: asked by Adam Matan, answered by Evan Carroll (CC BY-SA 4.0)
How do function pointers in C work?C
Function pointers in C
Let's start with a basic function which we will be pointing to:
int addInt(int n, int m) { return n+m; }First thing, let's define a pointer to a function which receives 2
ints and returns anint:int (*functionPtr)(int,int);Now we can safely point to our function:
functionPtr = &addInt;Now that we have a pointer to the function, let's use it:
int sum = (*functionPtr)(2, 3); // sum == 5Passing the pointer to another function is basically the same:
int add2to3(int (*functionPtr)(int, int)) { return (*functionPtr)(2, 3); }We can use function pointers in return values as well (try to keep up, it gets messy):
// this is a function called functionFactory which receives parameter n // and returns a pointer to another function which receives two ints // and it returns another int int (*functionFactory(int n))(int, int) { printf("Got parameter %d", n); int (*functionPtr)(int,int) = &addInt; return functionPtr; }But it's much nicer to use a
typedef:typedef int (*myFuncDef)(int, int); // note that the typedef name is indeed myFuncDef myFuncDef functionFactory(int n) { printf("Got parameter %d", n); myFuncDef functionPtr = &addInt; return functionPtr; }From Stack Overflow: asked by Yuval Adam, answered by Yuval Adam (CC BY-SA 3.0)
What is the difference between #include <filename> and #include "filename"?C++
What differs is the locations in which the preprocessor searches for the file to be included.
#include <filename>The preprocessor searches in an implementation-defined manner, normally in directories pre-designated by the compiler/IDE. This method is normally used to include header files for the C standard library and other header files associated with the target platform.#include "filename"The preprocessor also searches in an implementation-defined manner, but one that is normally used to include programmer-defined header files and typically includes same directory as the file containing the directive (unless an absolute path is given).
For GCC, a more complete description is available in the GCC documentation on search paths.
From Stack Overflow: asked by quest49, answered by quest49 (CC BY-SA 4.0)
What is the syntax for a multiline string literal?Rust
All string literals can be broken across several lines; for example:
let string = "line one line two";is a two line string, the same as
"line one\nline two"(of course one can use the\nnewline escape directly too). If you wish to just break a string across multiple lines for formatting reasons you can escape the newline and leading whitespace with a\; for example:let string = "one line \ written over \ several";is the same as
"one line written over several".If you want linebreaks in the string you can add them before the
\:let string = "multiple\n\ lines\n\ with\n\ indentation";It's the same as
"multiple\nlines\nwith\nindentation";From Stack Overflow: asked by Dumbapples, answered by huon (CC BY-SA 4.0)
What is the idiomatic Go equivalent of C's ternary operator?Go
As pointed out (and hopefully unsurprisingly), using
if+elseis indeed the idiomatic way to do conditionals in Go.In addition to the full blown
var + if + elseblock of code, though, this spelling is also used often:index := val if val <= 0 { index = -val }And if you have a block of code that is repetitive enough, such as the equivalent of
int value = a <= b ? a : bthen you can create a function to hold it:
func min(a, b int) int { if a <= b { return a } return b } ... value := min(a, b)The compiler will inline such simple functions, so it's fast, more clear, and shorter.
From Stack Overflow: asked by Fabien, answered by Gustavo Niemeyer (CC BY-SA 4.0)
Why should we hire you?Behavioural
The strengths employers look for will depend on the job role. They may ask you questions like:
- what are your main strengths?
- why should we hire you?
You can use specific examples to highlight your strengths, such as:
- communication - to show you get on with others
- problem solving - to show that you can find solutions
- enthusiasm - to show that you have a positive attitude to work
- flexibility - to show that you can adapt to different ways of working
Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Murex Senior Developer (ETP Risk)MUFG Bank Boston Corporate & Tech Hub, Bengaluru, on-siteToday
- Software Development Engineer - IIIF5, Hyderabad, on-siteToday
- Senior Software EngineerMirantis, Remote in IndiaToday
- SWPjMBosch Group, Bengaluru, on-siteYesterday
More like this: Software engineer jobs in India (1,457) and Remote Software engineer jobs in India (339)



