[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class PGSqlSemantics (0.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.0 (latest)](/python/docs/reference/langchain-google-spanner/latest/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.8.2](/python/docs/reference/langchain-google-spanner/0.8.2/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.7.0](/python/docs/reference/langchain-google-spanner/0.7.0/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.6.0](/python/docs/reference/langchain-google-spanner/0.6.0/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.5.0](/python/docs/reference/langchain-google-spanner/0.5.0/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.4.1](/python/docs/reference/langchain-google-spanner/0.4.1/langchain_google_spanner.vector_store.PGSqlSemantics)\n- [0.3.0](/python/docs/reference/langchain-google-spanner/0.3.0/langchain_google_spanner.vector_store.PGSqlSemantics) \n\n PGSqlSemantics()\n\nImplementation of dialect semantics for PostgreSQL.\n\nMethods\n-------\n\n### getDistanceFunction\n\n getDistanceFunction(distance_strategy=DistanceStrategy.EUCLIDEAN) -\u003e str\n\nAbstract method to get the distance function based on the provided distance strategy.\n\nParameters:\n\n- distance_strategy (DistanceStrategy): The distance calculation strategy. Defaults to DistanceStrategy.EUCLIDEAN.\n\nReturns:\n\n- str: The name of the distance function."]]