You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When index is created on an existing table containing data, Postgres server crashes.
postgres=# CREATE INDEX foo_a ON foo(a);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
The text was updated successfully, but these errors were encountered:
…isting table with data
Summary:
Before:
While creating an index on existing table with data, postgres server would crash.
```
CREATE TABLE foo(a INT, b INT, c INT, d INT);
INSERT INTO foo VALUES(1,1,1,1);
CREATE INDEX foo_a ON foo(a);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
```
Now:
```
CREATE TABLE foo(a INT, b INT, c INT, d INT);
INSERT INTO foo VALUES(1,1,1,1);
postgres=# create index foo_d on foo(a);
CREATE INDEX
postgres=# select * from foo where a=1;
a | b | c | d
---+---+---+---
1 | 1 | 1 | 1
(1 row)
```
Test Plan: Jenkins
Reviewers: robert
Reviewed By: robert
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D6281
When index is created on an existing table containing data, Postgres server crashes.
The text was updated successfully, but these errors were encountered: