Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/remote/query-optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class QueryOptimizer extends EventEmitter<EventMap> {
): Promise<void> {
const version = PostgresVersion.parse("17");
const pg = this.manager.getOrCreateConnection(this.connectable);
const ownStats = await Statistics.dumpStats(pg, version, "full");
const ownStats = await Statistics.dumpStats(pg, version);
const statistics = new Statistics(pg, version, ownStats, statsMode);
this.existingIndexes = await statistics.getExistingIndexes();
const filteredIndexes = this.filterDisabledIndexes(this.existingIndexes);
Expand Down
1 change: 0 additions & 1 deletion src/remote/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ export class Remote extends EventEmitter<RemoteEvents> {
const stats = await Statistics.dumpStats(
pg,
PostgresVersion.parse("17"),
"full",
);
return { kind: "fromStatisticsExport", source: { kind: "inline" }, stats };
}
Expand Down
2 changes: 1 addition & 1 deletion src/sync/syncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class PostgresSyncer {
{ dependencies, serialized: serializedResult },
] = await Promise.all([
withSpan("stats", () => {
return Statistics.dumpStats(sql, PostgresVersion.parse("17"), "full");
return Statistics.dumpStats(sql, PostgresVersion.parse("17"));
})(),
withSpan("getDatabaseInfo", () => {
return connector.getDatabaseInfo();
Expand Down
Loading